kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
24.37k stars 980 forks source link

Keymap doesn't respect the layout when splitting window #7270

Closed idelice closed 7 months ago

idelice commented 7 months ago

Describe the bug I added a keymap to split vertically and horizontally accordingly to the docs but regardless of which keymapping I trigger, the outcome is the same; an horizontal split.

Here's my two mapping:

map alt+cmd+h launch --location=hsplit
map alt+cmd+v launch --location=vsplit

To Reproduce Steps to reproduce the behavior:

  1. add the keymappings
  2. trigger both

Screenshots If applicable, add screenshots to help explain your problem.

Environment details

kitty 0.30.1 (6a3529b7c2) created by Kovid Goyal
Darwin ibrahims-MBP 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:31:00 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6020 arm64
ProductName:        macOS ProductVersion:       14.3 BuildVersion:      23D56
Frozen: True
Paths:
  kitty: /Applications/kitty.app/Contents/MacOS/kitty
  base dir: /Applications/kitty.app/Contents/Resources/kitty
  extensions dir: /Applications/kitty.app/Contents/Resources/Python/lib/kitty-extensions
  system shell: /bin/zsh
Loaded config files:
  /Users/ibrahimdelice/.config/kitty/kitty.conf

Config options different from defaults:
background_blur         60
background_opacity      0.6
editor                  /opt/homebrew/bin/nvim
font_size               12.0
hide_window_decorations 2
modify_font:
    cell_height 140%
scrollback_lines        4294967295
shell_integration       frozenset({'disabled'})
tab_bar_edge            1
tab_bar_style           powerline
tab_title_template      {index}: {title[title.rfind('/')+1:]}
Added shortcuts:
    opt+cmd+j →  launch --location=split
    opt+cmd+o →  layout_action rotate
Changed shortcuts:
    opt+cmd+h →  launch --location=hsplit

Important environment variables seen by the kitty process:
    PATH                                /Applications/kitty.app/Contents/MacOS:/usr/bin:/bin:/usr/sbin:/sbin
    LANG                                en_US.UTF-8
    SHELL                               /bin/zsh
    USER                                ibrahimdelice
kovidgoyal commented 7 months ago

you need to actually be using the splits layout. enabled_layouts splits

idelice commented 7 months ago

enabled_layouts

That important information is very easy to miss in the docs, but thank you. By adding enabled_layouts splits - it worked.