hints kitten: Use default editor rather than hardcoding vim to open file at specific line

Fixes #7186
This commit is contained in:
Kovid Goyal
2024-03-04 21:49:06 +05:30
parent 9352576d1e
commit c3c99113c7
4 changed files with 12 additions and 5 deletions

View File

@@ -81,6 +81,8 @@ Detailed list of changes
- kitten @ ls: Return the timestamp at which the window was created (:iss:`7178`)
- hints kitten: Use default editor rather than hardcoding vim to open file at specific line (:iss:`7186`)
0.32.2 [2024-02-12]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@@ -26,8 +26,10 @@ and 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
:program:`vim` at the specified line number. The patterns and editor to be used
can be modified using options passed to the kitten. For example::
your default editor at the specified line number (opening at line number will
work only if your editor supports the +linenum command line syntax or is a
"known" editor). The patterns and editor 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}