hints kitten: Allow pressing :sc:goto_file_line to quickly open the selected file at the selected line in vim

Fixes #2268
This commit is contained in:
Kovid Goyal
2020-01-10 10:01:03 +05:30
parent 6a8b7bf92f
commit 9bc1b5a2d9
6 changed files with 94 additions and 7 deletions

View File

@@ -1274,6 +1274,11 @@ k('insert_selected_hash', 'kitty_mod+p>h', 'kitten hints --type hash --program -
Select something that looks like a hash and insert it into the terminal.
Useful with git, which uses sha1 hashes to identify commits'''))
k('goto_file_line', 'kitty_mod+p>n', 'kitten hints --type linenum', _('Open the selected file at the selected line'), long_text=_('''
Select something that looks like :code:`filename:linenum` and open it in vim at
the specified line number.'''))
# }}}
g('shortcuts.misc') # {{{