Repository navigation
resize-window won't make windows shorter than some threshold #7220
Copy link
Copy link
Closed
Labels
Description
Describe the bug
Depending on the size of the OS Window, there is a threshold past which Kitty will refuse to resize windows.
For me, at full-screen, that threshold is around 9 rows on a short monitor, but 17 rows on a tall monitor.
If the OS window is made smaller, the minimum number of rows can be reduced to as few as 2 (but seemingly not to 1).
To Reproduce
Steps to reproduce the behavior:
- Open a Kitty terminal.
- Select the "splits" layout.
- Create a vertical split below the current window. (default
ctrl+shift+enter) - Resize the window to make it taller; at a certain point, it will
bellor error. (for example,ctrl+shift+rto open the resize kitten, and then presstuntil the terminal bells) - You can make the window smaller still by resizing the OS window to make it shorter instead.
Screenshots
I don't think a screenshot is particularly useful here.
Environment details
kitty 0.31.0 created by Kovid Goyal
Linux numen 6.7.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 08 Mar 2024 01:59:01 +0000 x86_64
numen arch linux
DISTRIB_ID="Arch"
DISTRIB_RELEASE="rolling"
DISTRIB_DESCRIPTION="Arch Linux"
Running under: X11
Frozen: False
Paths:
kitty: /usr/bin/kitty
base dir: /usr/lib/kitty
extensions dir: /usr/lib/kitty/kitty
system shell: /bin/zsh
Loaded config files:
/home/fluffywaffles/.config/kitty/kitty.conf
Config options different from defaults:
allow_remote_control yes
enabled_layouts ['splits', 'stack']
font_size 8.0
Changed shortcuts:
kitty_mod++ → change_font_size all +1.0
kitty_mod+- → change_font_size all -1.0
kitty_mod+= → change_font_size all 0
kitty_mod+q → close_window_with_confirmation ignore-shell
kitty_mod+s → launch --cwd=current --location=vsplit
kitty_mod+w → launch --cwd=current --location=hsplit
kitty_mod+z → toggle_layout stack
Colors:
background #323232
color0 #323232
color1 #d25252
color10 #9dff91
color11 #ffe48b
color12 #5eb7f7
color13 #ff9dff
color14 #dcf4ff
color2 #7fe173
color3 #ffc66d
color4 #4099ff
color5 #f680ff
color6 #bed6ff
color7 #eeeeec
color8 #535353
color9 #f07070
cursor #d6d6d6
foreground #ffffff
selection_background #ffffff
selection_foreground #323232
Important environment variables seen by the kitty process:
PATH /home/fluffywaffles/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LANG en_US.UTF-8
EDITOR nvim
SHELL /bin/zsh
DISPLAY :0
USER fluffywaffles
XDG_CONFIG_HOME /home/fluffywaffles/.config
XDG_SEAT seat0
XDG_SESSION_TYPE tty
XDG_SESSION_CLASS user
LC_MESSAGES
XDG_VTNR 1
XDG_SESSION_ID 1
XDG_RUNTIME_DIR /run/user/1000
Additional context
The issue reproduces with kitty --config NONE.
Reactions are currently unavailable
Activity
visrosa commentedon Jul 10, 2024
I'm not sure if this is related, but on kitty 0.35.2 I can't make any window shorter than 6 columns. Is there a way to get around this limitation? I'm specifically trying to have a window that's just about two lines high.
kovidgoyal commentedon Jul 10, 2024
Use the splits layout it doesnt have a limit, IIRC.
visrosa commentedon Jul 11, 2024
Thanks it worked!
Splits layout: Allow resizing until one of the halves in a split is m…