zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
19.38k stars 610 forks source link

Resizing panes only resizes multiple lines at a time #3418

Open unikitty37 opened 2 weeks ago

unikitty37 commented 2 weeks ago

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

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"