mirror of
https://github.com/softinio/nix-config.git
synced 2025-09-03 16:16:42 -07:00
Improvements to kitty conf to support hyperlinks
This commit is contained in:
parent
6bc7ff5190
commit
d92d7b10f3
5 changed files with 44 additions and 20 deletions
10
programs/kitty/open-actions.conf
Normal file
10
programs/kitty/open-actions.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Open any file with a fragment in vim, fragments are generated
|
||||
# by the hyperlink-grep kitten and nothing else so far.
|
||||
protocol file
|
||||
fragment_matches [0-9]+
|
||||
action launch --type=overlay --cwd=current vim +${FRAGMENT} -- ${FILE_PATH}
|
||||
|
||||
# Open text files without fragments in the editor
|
||||
protocol file
|
||||
mime text/*
|
||||
action launch --type=overlay --cwd=current -- ${EDITOR} -- ${FILE_PATH}
|
Loading…
Add table
Add a link
Reference in a new issue