Skip to content

kitten @detach-tab does not preserve window layout in split mode #8106

@yusufshalaby

Description

@yusufshalaby

Describe the bug
Detaching tabs using kitten @detach-tab resets the window layout of the tabs in split mode.

To Reproduce
Steps to reproduce the behavior:

  1. Use the following config:
allow_remote_control yes
enabled_layouts splits
  1. kitten @launch --location=hsplit
    Your tab should contain two windows, one stacked on top of the other
  2. kitten @detach-tab
    The tabs will now be vertically aligned, side by side

Screenshots
Original
Screenshot 2024-12-06 at 8 16 24 AM

After detaching
Screenshot 2024-12-06 at 8 16 42 AM

Environment details

kitty 0.37.0 (2531c31d02) created by Kovid Goyal
Darwin Yusufs-MBP.localdomain 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000 arm64
ProductName:		macOS ProductVersion:		14.6.1 BuildVersion:		23G93
OpenGL: '4.1 Metal - 88.1' Detected version: 4.1
Frozen: True
Fonts:
  medium: Menlo-Regular: /System/Library/Fonts/Menlo.ttc
          Features: ()
    bold: Menlo-Bold: /System/Library/Fonts/Menlo.ttc
          Features: ()
  italic: Menlo-Italic: /System/Library/Fonts/Menlo.ttc
          Features: ()
      bi: Menlo-BoldItalic: /System/Library/Fonts/Menlo.ttc
          Features: ()
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:
  minimal.conf

Config options different from defaults:
allow_remote_control yes
enabled_layouts      ['splits']
Changed shortcuts:
	cmd+k →  clear_terminal_and_scrollback
	ctrl+cmd+, →  reload_config
	opt+cmd+r →  reset_terminal
	shift+cmd+/ →  open_kitty_website

Important environment variables seen by the kitty process:
	PATH                                /Users/yusufshalaby/.asdf/shims:/Users/yusufshalaby/.asdf/bin:/Library/Frameworks/Python.framework/Versions/3.13/bin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/yusufshalaby/.cargo/bin:/Applications/kitty.app/Contents/MacOS:/Users/yusufshalaby/Library/Application Support/Coursier/bin:/Users/yusufshalaby/.local/bin:/opt/homebrew/opt/fzf/bin:/Users/yusufshalaby/.local/bin
	LANG                                en_CA.UTF-8
	VISUAL                              nvim
	EDITOR                              nvim
	SHELL                               /bin/zsh
	USER                                yusufshalaby

Additional context
Minimal kitty.conf:

allow_remote_control yes
enabled_layouts splits

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions