-
-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] option for unified- / inline-diff #39
Comments
It is not planned, no. And honestly, I don't see a good reason to implement it in this plugin, seeing as there are many great tools for doing this already. I highly recommend checking out delta if you haven't already. Using delta or simliar you can easily set up some custom commands for showing inline diffs: " Open inline diff for changes in all files in a vertical split
command! DiffInline vsp | exe 'term git diff | delta' | startinsert
" Open inline diff for changes in current file in a vertical split
command! DiffInlineFile vsp | exe 'term git diff -- '
\ . shellescape(expand("%")) . ' | delta' | startinsert Running these commands looks something like this: Also, all git wrappers for vim that I can think of support inline diffs. That includes Fugitive and Neogit. I'll keep this up for consideration. I might implement something like this at some point, but it's not a priority. |
Thanks for responding, and the recommendations! Appreciate it |
BTW, diffchar.vim is one option for this case. |
attach()
to work with any buffer given the necessary context data
lewis6991/gitsigns.nvim#682
Thanks for this great plugin. I would really appreciate if diffview had this feature. I run most of my git commands in the terminal, but (re)viewing diffs is just much easier with diffview. It wouldn't make sense to install a git integration like neogit solely for the unified diff view, when diffview already is my diff viewing tool. Would you deem this feature request out of scope, or would you consider it if there were enough demand and/or a PR adding this feature? |
Another reason for implementing this might be in consideration for small screen sizes. Having three splits open on a laptop screen feels cramped. Two splits, file panel and the diff (with the diffs in-lined), looks much cleaner. Would really love to see this feature supported in the future. Thank you for this great plugin! |
Would really like this feature as well. Would work great on commit, to have a split with information on what you committing |
I love this plugin, so thank you very much for your work.
One thing I'm missing though is the ability to use inline-diffs, instead of side by side.
For lots of minor changes, I find it's a lot easier to read.
Sth like this:
Is this anything that is planned?
The text was updated successfully, but these errors were encountered: