mirror of
https://github.com/rywng/dotfiles.git
synced 2024-10-30 15:41:50 +08:00
21 lines
634 B
Plaintext
21 lines
634 B
Plaintext
# Open any image in the full kitty window by clicking on it
|
|
protocol file
|
|
mime image/*
|
|
action launch --type=overlay kitty +kitten icat --hold ${FILE_PATH}
|
|
|
|
# Open directories
|
|
protocol file
|
|
mime inode/directory
|
|
action launch --type=os-window --cwd $FILE_PATH
|
|
|
|
# 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 nvim +${FRAGMENT} ${FILE_PATH}
|
|
|
|
# Open text files without fragments in the editor
|
|
protocol file
|
|
mime text/*
|
|
action launch --type=overlay --cwd=current ${EDITOR} ${FILE_PATH}
|