I love the Kitty terminal emulator for its speed! Ever since I started doing more work in the terminal, it became painfully clear to me that the standard terminal.app on Mac and even iTerm2 (although an amazing product!) were not cutting it anymore for me in terms of speed.
However, since I started using Kitty, I noticed how used I was to some of the shortcuts that "just work" when using terminal.app and iTerm2. In this short post we'll go over some configuration settings to make Kitty behave more like iTerm2 and have the best of both worlds!
What we'll be configuring
-
cmd
+ arrow keys for jumping to beginning or end of the line. -
alt
+ arrow keys for jumping between words. - Only vertical splits by default
- Switching between Tabs (Kitty calls them Windows) by using
cmd
+ 1-9 numeric keys - Some visual tweaks
Relevant config
# don't draw extra borders, but fade the inactive text a bit active_border_color none inactive_text_alpha 0.6 # tabbar should be at the top tab_bar_edge top tab_bar_style separator tab_separator " ┇" # open new split (window) with cmd+d retaining the cwd map cmd+d new_window_with_cwd # open new tab with cmd+t map cmd+t new_tab_with_cwd # new split with default cwd map cmd+shift+d new_window # switch between next and previous splits map cmd+] next_window map cmd+[ previous_window # clear the terminal screen map cmd+k combine : clear_terminal scrollback active : send_text normal,application \x0c # jump to beginning and end of word map alt+left send_text all \x1b\x62 map alt+right send_text all \x1b\x66 # jump to beginning and end of line map cmd+left send_text all \x01 map cmd+right send_text all \x05 # Map cmd + <num> to corresponding tabs map cmd+1 goto_tab 1 map cmd+2 goto_tab 2 map cmd+3 goto_tab 3 map cmd+4 goto_tab 4 map cmd+5 goto_tab 5 map cmd+6 goto_tab 6 map cmd+7 goto_tab 7 map cmd+8 goto_tab 8 map cmd+9 goto_tab 9
See the full config in my Dotfiles and see all available configuration options here.
Cheers! 🐈
crosspost from https://tiemenwaterreus.com/posts/configuring-kitty/
Top comments (5)
Thanks dude.
I'm switching from iTerm2 to Kitty, I like it a lot, it is super simple but it is frustrating for me not have mapped the alt key to jump between words and cmd for lines.
Thanks! I'm a long term iterm2 user so I kinda need these settings. I've been toying with alacritty but couldn't get it into my workflow. Kitty seems promising.
One thing though - after installing kitty with homebrew, I can't seem to start it with Alfred or spotlight. It is there in /Applications, but doesn't show in index :(
Weird, finally got it in index. Have been indexing for a full day and it didn't show just a few minutes when I posted, but now it's there finally :)
This is exactly what I needed! I'm so glad someone wrote about this
Anyone been able to set Kitty as the default terminal emulator instead of the Terminal app?