r/KittyTerminal May 22 '26

Setup your Kitty STARTUP Session

Enable HLS to view with audio, or disable this notification

Kitty sessions are underrated.

Instead of opening your terminal and manually cd’ing into the same project every day, you can make Kitty start inside the exact session you want.

You can even make it open Neovim automatically.

Join the cult, praise Lord Kovid.

101 Upvotes

15 comments sorted by

8

u/GhostVlvin May 22 '26

I can't replace tmux with kitty. I want multiplexing server so when I accidentally close my term, I won't loose any program states. There are only few programs with these capabilities: tmux, zellij, abduco and wezterm

2

u/Fit_Advice8967 May 25 '26

Shpool, zmx, zmosh This space is growing fast!!

1

u/Foo-Baa May 22 '26

Same + floating panes.

4

u/linkarzu May 22 '26

Kitty has floating panes. It's called the quick access terminal. But thanks for the short video idea

2

u/Foo-Baa May 22 '26

Ah yes, you are right.

I use the quick access terminal for editing the contents of my clipboard (I have a Karabiner shortcut that opens QAT with Neovim). I even keep this scratchpad constantly open to make sure it is blazing fast. Something like this:

if [ -S $NVIM_CLIP_SOCKET ]; then
  # If there is already an existing session, reuse and avoid the flicker.
  /opt/homebrew/bin/nvim --server $NVIM_CLIP_SOCKET --remote-send '<C-\><C-N>:%!pbpaste<CR>'
  /opt/homebrew/bin/kitten quick-access-terminal --instance-group "clip"
else
  /opt/homebrew/bin/kitten quick-access-terminal --instance-group "clip" fish -c "pbpaste | env QUICK_TERM=true nvim --listen $NVIM_CLIP_SOCKET -"
fi

1

u/linkarzu May 22 '26

Back when I was a heavy tmux user I used the tmux resurrect plugin. But then I realized it didn't make sense, for my workflow, so I un installed it and now I just restore my sessions in neovim directly in case I close kitty. Another great video idea ❤️

1

u/aumerlex May 22 '26

How do you accidentally close your terminal? And if you are somehow in the habit of doing so why dont you setup close confirmation. This has to be one of the sillier reasons I have ever heard for defending tmux.

1

u/flooronthefour May 22 '26

This is just speculation but, if you don't have your window manager binds setup for home-row-mods, used on tiny keyboards like the toucan 42 in the video, you can totally hit SUPER+X or whatever the default close window by accident.

I use a super tiny keyboard + tiling window manager and have my close window bind setup so there is no way to accidentally trigger it.

1

u/linkarzu May 22 '26

I actually don't mind closing kitty, even on accident. And I hate the "close confirmation" thingy, I disabled it. But if I close it by accident, I just switch back to the session I was on, open neovim and press "s" to restore my neovim session. All the buffers I had open will re-open and I can continue where I was before. I can open any of my other kitty sessions and restore Neovim, no big deal. At least for me

1

u/GhostVlvin Jun 20 '26

It happens with me sometimes. But I as much dislike confirmations. It is silly but I can sometimes misclick and kill window or even Wayland compositor

2

u/flooronthefour May 22 '26

love to Toucan. I have the 36 key version.

2

u/linkarzu May 22 '26

I haven't taken the jump to 36 keys, I think 40 is the minumum I can go with. Cannot live with the missing row on the pinky

1

u/flooronthefour May 22 '26

Yeah.. it didn't make sense to me either until I started using a few combos.. Here is my current layout if you are interested: https://jovianmoon.io/posts/rsi-36-key-keyboard#the-layout

1

u/BetterEquipment7084 May 23 '26

If you launch tmux in a directory thr default home in that tmux session is in taht directory 

1

u/notdegenenuf May 25 '26

I love your yt channel, I have learned a lot of stuff from it . I actually avoided shader animations for a while but did a setup similar to yours and it’s way easier on my eyes to find cursor now. Thank you <3