Add :GitGutterQuickFix command.

It loads all hunks into the quickfix list.

Closes #617.
This commit is contained in:
Andy Stewart
2019-08-28 11:59:19 +01:00
parent 307caf6f39
commit 88d396f1b4
5 changed files with 51 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ Features:
* Provides a hunk text object.
* Diffs against index (default) or any commit.
* Allows folding all unchanged text.
* Can load all hunk locations into quickfix list.
* Handles line endings correctly, even with repos that do CRLF conversion.
* Optional line highlighting.
* Optional line number highlighting. (Only available in Neovim 0.3.2 or higher)
@@ -183,6 +184,8 @@ nmap ]h <Plug>GitGutterNextHunk
nmap [h <Plug>GitGutterPrevHunk
```
You can load all your hunks into the quickfix list with `:GitGutterQuickFix`. Note this ignores any unsaved changes in your buffers.
You can stage or undo an individual hunk when your cursor is in it:
* stage the hunk with `<Leader>hs` or