top | item 45433474

(no title)

zeppelin101 | 5 months ago

How do you use the remote control of Kitty? I have barely explored it.

discuss

order

bayesianbot|5 months ago

Not OP but

- Terminal search and focus (you can list kitty tabs and windows and get the window content from the socket, implementing a BM25 based search is quite easy)

- Giving the current terminal content for AI, so I can do things like run `ls` and then write "Rename the files (in some way)", and push the whole thing to LLM that replaces the command line without me having to write the full context

I even have a Codex session finder that uses codex session files to list and select the session I want, and then uses the kitty socket to find and focus the window which matches the session content

porridgeraisin|5 months ago

I have thought of things to do with kitty remote but have always been lazy to actually write the code. Do you have it open source by any chance for me to steal?

zeppelin101|5 months ago

Very impressive! I'll look into some of these.

roylez|5 months ago

The ones that I use the most are designed to reduce context switching, like:

Mutt, personal wiki (fzf searching and neovim editing) and todo (a long never ending markdown file), they all have dedicated shortcut (cmd+m/cmd+z/cmd+d) to open(switch to) their window. These applications, always reside in the first tab with stack layout. For example, I can press cmd+m to switch to mutt (or open it), and press cmd+m again to switch back to the previously focused window.

Depending on which repl is running, I can usually open up vim to edit the line with the same cmd+e shortcut, which sends C-X C-E in bash/zsh, ESC O in iex, C-O in aichat ... Also vertical split in tmux and kitty tab share the same shortcut, cmd+|.

Kitty does not have a command palette, and I use fzf to search some of my frequently used operations and make this my command palette.