Allow selecting hyperlinks via the hints kitten

This commit is contained in:
Kovid Goyal
2020-09-24 13:21:15 +05:30
parent e0d9e05fd4
commit 12bbe5459d
3 changed files with 97 additions and 21 deletions

View File

@@ -1487,6 +1487,9 @@ k('goto_file_line', 'kitty_mod+p>n', 'kitten hints --type linenum', _('Open the
Select something that looks like :code:`filename:linenum` and open it in vim at
the specified line number.'''))
k('open_selected_hyperlink', 'kitty_mod+p>y', 'kitten hints --type hyperlink', _('Open the selected hyperlink'), long_text=_('''
Select a hyperlink (i.e. a URL that has been marked as such by the terminal program, for example, by ls --hyperlink=auto).
'''))
# }}}