1
0
Fork 0
chezmoi/dot_config/kitty/open-actions.conf
2023-07-25 13:22:24 +02:00

17 lines
484 B
Text

# 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 nvim +${FRAGMENT} ${FILE_PATH}
protocol man
action launch --type=overlay nvim man://${URL_PATH}
# Open text files without fragments in the editor
protocol file
mime text/*
action launch --type=overlay nvim ${FILE_PATH}
protocol file
mime text/html
action launch --type=overlay w3m ${FILE_PATH}