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?
I would like to open/close the DiffView with a single mapping like
dvo
from visual mode. Is this possible? Right now i havedvo
anddvc
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?