15

I would like to split screen of my terminal (kitty). I know it's possible but there doesn't seem to be a shortcut (pre-made or that I can add to kitty.conf file. I also saw an option for typing a command but I don't understand where this command needs to be typed (and is annoying to type a command to split screen each time).

Sidenote: There is no existing tag for 'Kitty' and I can't create it either.

Thanks

rkochar
  • 395
  • 1
  • 4
  • 15

2 Answers2

37

As Kitty's document specifies, you can have both tabs and split screens (Kitty calls them "windows").


Tab:

New tab: ctrl + shift + t (also + t on macOS)

Close tab: ctrl + shift + q (also + w on macOS)

Next tab: ctrl + shift + right (also + and + + ] on macOS)

Previous tab: ctrl + shift + left (also + + and + + [ on macOS)


Window (split screen within the main Kitty window):

New window: ctrl + shift + enter (also + on macOS)

Close window: ctrl + shift + w (also + + d on macOS)

Next window: ctrl + shift + ]

Previous window: ctrl + shift + [

After opening a new window (split screen), if you don't like the layout, you can try different layouts by pressing ctrl + shift + l until you find a layout that you like.


OS window:

New OS window: ctrl + shift + n (also + n on macOS)

Flimm
  • 136,138
  • 45
  • 251
  • 267
Sdgh17
  • 506
  • 4
  • 13
  • `ctrl + shift + t` opens a new tab for me (maybe I added the command to `kitty.conf`). I was looking for something that [splits the screen instead](https://i.imgur.com/fUbzicZ.png). I found that `ctrl + n` achieves this. Again it may be because of something I added to `kitty.conf`, I need to check that. – rkochar Mar 09 '21 at 11:48
  • @Mr.rk Yes, like I said, `ctrl + shift + t` is supposed to open a new tab. What you need is a new window, which opens with `ctrl + shift + enter` by default. – Sdgh17 Mar 12 '21 at 05:23
  • Indeed `ctrl + shift + enter` works the same way as `ctrl + n`. Post this as an answer or edit your existing answer and I'll accept it. – rkochar Mar 12 '21 at 10:20
  • 3
    @Mr.rk I have Kitty myself but `ctrl + n` doesn't do anything. I'm working with default settings, so it's probably your own configuration. – Sdgh17 Mar 13 '21 at 12:05
  • ctrl-shift-enter only splits horizontally, no way to split it vertically it seems. – Shawn Shaw Jan 16 '23 at 21:02
  • 2
    @LaoShaw you can add a window (`ctrl + shift + enter`) and then switch the layout with `ctrl + shift + l` ([described in the docs](https://sw.kovidgoyal.net/kitty/layouts/)) – gonzofish Jan 19 '23 at 14:45
0

just wanna place more informative docs (windows) that helped me find difference in Mac and Windows shortcuts


Here two important difference on MacOS. Rest works fine

New window: cmd + enter

Close window: shift + cmd + d

pti4ka
  • 1
  • 1