sindrets / diffview.nvim

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

Toggle DiffView[Open|Close] with a single command mapping? #262

Closed kekscode closed 1 year ago

kekscode commented 1 year ago

I would like to open/close the DiffView with a single mapping like dvo from visual mode. Is this possible? Right now i have dvo and dvc mapped (o for open and c for close).

I would have expected to have something like :DiffViewToggle which either opens or closes the tab. Or maybe this is already possible with a smart mapping config which checks if the tab is already opened?

kekscode commented 1 year ago

I see this has already been requested multiple times but won't get implemented :( https://github.com/sindrets/diffview.nvim/issues/243