Hacker News new | ask | show | jobs
by ryenus 2847 days ago
Have you managed to configure it to behave similar to iTerm 2 in terms of keyboard shortcuts? Would you please share your config?

One thing is, I don't get its layout, is it possible to create a vertical/horizontal split like what (shift+)cmd+d does in iTerm 2?

2 comments

Ctrl-Shift-Enter opens a new "window" -- this is the terminology in the Kitty docs; it's a new terminal within the same frame, both being visible at the same time.

Ctrl-Shift-L goes through all enabled layouts. A layout specifies how the "windows" are arranged. Simple splits are available among others. I like the stacked layout: window 1 fills the full height on the left half of the screen, all other windows are stacked on the right half.

There does not seem to be a way to control the borders within the layout with the mouse; e.g. temporarily resize window 1 in the example above to be 80% of the width. That's something I sometimes miss. It's configurable, of course, but not ad hoc.

You can freely resize layouts using hte keyboard (but not the mouse) see https://sw.kovidgoyal.net/kitty/#layouts but be aware that it currently does not work in the released kitty because of a regression, so you will need to run kitty from master
Thanks, that's... certainly better than nothing. Works in the 0.11.3 release that I'm running.
It seems heavily inspired by xmonad.
That's something I really need as well - I like how fast kitty is compared to iterm2, but I'm just so used to using the splits in iterm2 + using a global keyboard shortcut to show and hide the terminal. I couldn't find anything similar in a quick glance over the config :/
For showing and hiding with a global keyword, couldn't you rely on your DE/WM to handle that for you?
Sorry, DE/WM? I assume WM is Window Manager, but can't think of what DE is, except Desktop something?

I'm using macOS and unfortunately not familiar with how I'd do that, but I'm sure it would be easy with something like i3wm on linux (which I still miss after moving away from linux 3 years ago :/), but I don't know what I could use in macOS.

Maybe I could find some third-party solution just to show/hide a particular application. I think if I had that + if I could figure out tabbing/tiling behaviour of Kitty, I would switch to it. Those two things are the main things that I need from iterm.

You can run a tiling window manager like i3 and xmonad on macOS! See:

https://github.com/ianyh/Amethyst

Global shortcut to bring up iterm2 is the main reason I use it!