Suggest a command instead of a map for opening quickfix

See #676, #749.
This commit is contained in:
Andy Stewart
2020-11-20 10:46:03 +00:00
parent 15b19020b4
commit a1f9f1f728
2 changed files with 4 additions and 4 deletions

View File

@@ -168,10 +168,10 @@ When you jump between hunks, a message like `Hunk 4 of 11` is shown on the comma
let g:gitgutter_show_msg_on_hunk_jumping = 0 let g:gitgutter_show_msg_on_hunk_jumping = 0
``` ```
You can load all your hunks into the quickfix list with `:GitGutterQuickFix`. Note this ignores any unsaved changes in your buffers. If the option `g:gitgutter_use_location_list` is set, this command will load hunks into the current window's location list instead. Use `:copen` (or `:lopen`) to open the quickfix / location list or add a map like this: You can load all your hunks into the quickfix list with `:GitGutterQuickFix`. Note this ignores any unsaved changes in your buffers. If the option `g:gitgutter_use_location_list` is set, this command will load hunks into the current window's location list instead. Use `:copen` (or `:lopen`) to open the quickfix / location list or add a custom command like this:
```viml ```viml
nmap <Leader>gq :GitGutterQuickFix\|copen<CR> command! Gqf GitGutterQuickFix | copen
``` ```
You can stage or undo an individual hunk when your cursor is in it: You can stage or undo an individual hunk when your cursor is in it:

View File

@@ -149,9 +149,9 @@ Commands for jumping between hunks:~
populate the location list of the current window populate the location list of the current window
instead. Use |:copen| (or |:lopen|) to open a buffer instead. Use |:copen| (or |:lopen|) to open a buffer
containing the search results in linked form; or add a containing the search results in linked form; or add a
map like this: custom command like this:
> >
nmap <Leader>gq :GitGutterQuickFix\|copen<CR> command! Gqf GitGutterQuickFix | copen
< <