dotfiles/.config/kitty/open-actions.conf

22 lines
712 B
Plaintext
Raw Normal View History

2024-01-29 10:11:00 +01:00
# Open any image in the full kitty window by clicking on it
protocol file
mime image/*
action launch --type=overlay kitten icat --hold ${FILE_PATH}
# Open any file with a fragment in vim, fragments are generated
# by the hyperlink_grep kitten or ripgrep v13.0+
protocol file
fragment_matches [0-9]+
action launch --type=overlay --cwd=current ${EDITOR} +${FRAGMENT} ${FILE_PATH}
# open file in $EDITOR when clicked
protocol file
mime text/*
action launch --type=overlay --cwd=current ${EDITOR} ${FILE_PATH}
# Tail a log file (*.log) in a new OS Window and reduce its font size
# protocol file
# ext log
# action launch --title ${FILE} --type=os-window tail -f ${FILE_PATH}
# action change_font_size current -2