-
Notifications
You must be signed in to change notification settings - Fork 11
/
launch-actions.conf
31 lines (25 loc) · 976 Bytes
/
launch-actions.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# This file defines what happens when we open a file using kitty via the `Open
# With` in Finder or dragging and dropping the file onto kitty dock icon.
# Open script files based on their shebangs
# protocol file
# ext sh,command,tool
# action launch --hold --type=os-window kitty +shebang $FILE_PATH {SHELL}
# Open shell specific script files
# protocol file
# ext fish,bash,zsh
# action launch --hold --type=os-window kitty +shebang $FILE_PATH __ext__
# Open directories
protocol file
mime inode/directory
action launch --type=os-window --cwd $FILE_PATH --type=tab
# Open text files without fragments in the editor
protocol file
mime text/*
action launch --type=os-window $EDITOR $FILE_PATH
# Open image files with icat
protocol file
mime image/*
action launch --type=os-window zsh -c "export PATH=/opt/homebrew/bin:/opt/homebrew/sbin:$PATH; kitty +kitten icat --hold '$FILE_PATH'"
# Open ssh URLs with ssh command
protocol ssh
action launch --type=os-window ssh $URL