From fbce95aeda264b1b94ac897f81a578b2a252bbd8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 10 Jan 2020 10:18:18 +0530 Subject: [PATCH] Add an example for open file hints --- docs/kittens/hints.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/kittens/hints.rst b/docs/kittens/hints.rst index 3f0c95f86..14dd25782 100644 --- a/docs/kittens/hints.rst +++ b/docs/kittens/hints.rst @@ -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