Add an example for open file hints

This commit is contained in:
Kovid Goyal 2020-01-10 10:18:18 +05:30
parent 9bc1b5a2d9
commit fbce95aeda
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -21,7 +21,11 @@ adding them to the command line for the next command.
You can also press :sc:`goto_file_line` to select anything that looks
like a path or filename followed by a colon and a line number and open
the file in vim at the specified line number. The patterns and editor
to be used can be modified using options passed to the kitten.
to be used can be modified using options passed to the kitten. For example::
map ctrl+g kitten hints --type=linenum --linenum-action=tab nvim +{line} +{path}
will open the selected file in a new tab inside neovim.
The hints kitten is very powerful to see more detailed help on its various
options and modes of operation, see below. You can use these options to