docs: document q keymap and window reuse behavior
This commit is contained in:
parent
c72efec77d
commit
6b4953bf41
1 changed files with 9 additions and 0 deletions
|
|
@ -226,6 +226,9 @@ COMMANDS *diffs-commands*
|
||||||
code language, plus diff header highlighting for `diff --git`, `---`,
|
code language, plus diff header highlighting for `diff --git`, `---`,
|
||||||
`+++`, and `@@` lines.
|
`+++`, and `@@` lines.
|
||||||
|
|
||||||
|
If a `diffs://` window already exists in the current tabpage, the new
|
||||||
|
diff replaces its buffer instead of creating another split.
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
{revision} (string, optional) Git revision to diff against.
|
{revision} (string, optional) Git revision to diff against.
|
||||||
Defaults to HEAD.
|
Defaults to HEAD.
|
||||||
|
|
@ -259,6 +262,12 @@ Example configuration: >lua
|
||||||
vim.keymap.set('n', '<leader>gD', '<Plug>(diffs-gvdiff)')
|
vim.keymap.set('n', '<leader>gD', '<Plug>(diffs-gvdiff)')
|
||||||
<
|
<
|
||||||
|
|
||||||
|
Diff buffer mappings: ~
|
||||||
|
*diffs-q*
|
||||||
|
q Close the diff window. Available in all `diffs://`
|
||||||
|
buffers created by |:Gdiff|, |:Gvdiff|, |:Ghdiff|,
|
||||||
|
or the fugitive status keymaps.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
FUGITIVE STATUS KEYMAPS *diffs-fugitive*
|
FUGITIVE STATUS KEYMAPS *diffs-fugitive*
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue