sindrets / diffview.nvim

Single tabpage interface for easily cycling through diffs for all modified files for any git rev.
Other
3.93k stars 107 forks source link

[Feature] Add `q` default keybinding to close the diffview tab #405

Closed briandipalma closed 1 year ago

briandipalma commented 1 year ago

Again not necessary but quite handy compared to the close tab binding I have and it seems semi-common in other plugins. Also LazyVim adds it in many popups/plugin panels too.

sindrets commented 1 year ago

Not a fan of this. An important feature of the plugin is that it shows diffs using normal vim buffers, allowing you to edit both local and index buffers with the full power of vim. Mapping q would override the default mapping for recording macros. Vim macros are incredibly powerful tools that I don't want to have disabled by default in my plugin.