Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resizing panes only resizes multiple lines at a time #3418

Open
unikitty37 opened this issue Jun 13, 2024 · 0 comments
Open

Resizing panes only resizes multiple lines at a time #3418

unikitty37 opened this issue Jun 13, 2024 · 0 comments

Comments

@unikitty37
Copy link

Issue description

When resizing panes vertically, Zellij appears to resize by multiple lines at a time (5 in my case, though this may depend on overall window size). This leaves me with a choice of a pane that is either too short or too tall.

IMO, Zellij should resize by one cell at a time; if I want to resize by five lines, I can press the arrow key five times, but I cannot press it one-fifth of a time with the current behaviour :)

Minimal reproduction

  • Install the repro setup.
  • Start zellij.
  • Create a second pane with ⌃p n
  • Enter resize mode with ⌃n
  • Press the up arrow key

config.kdl

plugins {
    tab-bar location="zellij:tab-bar"
    status-bar location="zellij:status-bar"
}

default_layout "demo"

layouts/demo.kdl

layout {
    pane size=1 borderless=true {
        plugin location="tab-bar"
    }
    pane split_direction="vertical"
    pane size=2 borderless=true {
        plugin location="status-bar"
    }
}

Other relevant information

macOS 14.5 (23F79)
zellij 0.40.1 (installed via homebrew)
alacritty 0.13.2 (1)

Alacritty config:

[font]
size = 14
normal = { family = "Hasklug Nerd Font", style = "Regular" }
bold = { family = "Hasklug Nerd Font", style = "Bold" }
italic = { family = "Hasklug Nerd Font", style = "Italic" }
bold_italic = { family = "Hasklug Nerd Font", style = "Bold Italic" }

[cursor]
style = { shape = "Block", blinking = "Off" }

[env]
TERM = "xterm-256color"

[shell]
program = "/opt/homebrew/bin/zellij"

[window]
padding.x = 4
padding.y = 6
opacity = 1
dimensions = { columns = 156, lines = 117 }
resize_increments = true
option_as_alt = "OnlyRight"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant