Skip to content

Commit

Permalink
Expand docs on how to close a hunk preview window
Browse files Browse the repository at this point in the history
  • Loading branch information
airblade committed May 24, 2021
1 parent f4bdaa4 commit ba21c56
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions doc/gitgutter.txt
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,19 @@ Commands for operating on a hunk:~

*gitgutter-:GitGutterPreviewHunk*
:GitGutterPreviewHunk Preview the hunk the cursor is in.
Use |:pclose| or |CTRL-W_CTRL-Z| to close the preview
window, or set |g:gitgutter_close_preview_on_escape|
and use <Esc>.

To close a non-floating preview window use |:pclose|
or |CTRL-W_z| or |CTRL-W_CTRL-Z|; or normal window-
closing (|:quit| or |:close| or |CTRL-W_c|) if your cursor
is in the preview window.

To close a floating window when the cursor is in the
original buffer, move the cursor.

To close a floating window when the cursor is in the
floating window use normal window-closing, or move to
the original window with |CTRL-W_p|. Alternatively set
|g:gitgutter_close_preview_on_escape| and use <Esc>.

To stage part of the hunk, move to the preview window,
delete any lines you do not want to stage, and
Expand Down

0 comments on commit ba21c56

Please sign in to comment.