kitty

last updated: Mar 05, 2025

https://sw.kovidgoyal.net/kitty/

The fast, feature-rich, GPU based terminal emulator

opening files with clicks

# cd into the clicked directory and list its contents protocol file mime inode/directory action send_text normal,application cd ${FILE_PATH}\rls\r # If a line number is clicked (indicated by presence of a fragment), jump to # that line number in an editor. Use `rg --hyperlink-format=kitty` to use this # feature protocol file fragment_matches [0-9]+ action send_text normal,application $EDITOR +${FRAGMENT} ${FILE_PATH}\r # Open text files without fragments in the editor protocol file mime text/*,application/* action send_text normal,application $EDITOR ${FILE_PATH}\r # some files were matching by extension to opening with system stuff. Add to # this extension list to open more types of files with vim protocol file ext yml,json,ts,tsx,jsx,py,sh,bash,rb,tf,dot action send_text normal,application $EDITOR ${FILE_PATH}\r # Dockerfile doesn't match by extension or mime type, so use a regex on the # name protocol file url Dockerfile action send_text normal,application $EDITOR ${FILE_PATH}\r # Open image files with icat protocol file mime image/* action send_text normal,application icat ${FILE_PATH}\r

opening files from finder

this github issue comment shows how you can create an Automator "application" that will find your kitty app, add a tab, and open a file with it.

Automator is just a crazy app, I don't know how apple ever expects anybody to use it, but I tried it out and this works perfectly.

↑ up