aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoruser <user@clank>2026-08-11 22:39:21 +0200
committeruser <user@clank>2026-08-11 22:39:21 +0200
commit42430f313cede1fe48fdf5e84eefd1f619264996 (patch)
tree9063742587c419e2045f1fad6db62adc5d9587b6 /src
parentsl0p: bring zj-pane-finder into the repo (diff)
downloadsl0ppij-42430f313cede1fe48fdf5e84eefd1f619264996.tar.gz
sl0ppij-42430f313cede1fe48fdf5e84eefd1f619264996.tar.xz
sl0ppij-42430f313cede1fe48fdf5e84eefd1f619264996.zip
sl0p(pane-finder): take the whole viewport on small terminals
The finder always opened as a centred float with a frame. That costs its margins (16% of columns, 28% of rows), a border, and on this fork the pane gap as well -- on an 80x24 terminal leaving about 63x14 of the 80x24 available. Rows are the scarce resource in a list, so most of the results were going to decoration. Below 100x30 it now takes the whole viewport and asks to be borderless, which also drops the gap since this fork skips gap/padding for frameless panes. Above that the centred float is kept, because it reads better when the space is there. The viewport is only knowable from TabInfo, so this re-evaluates on TabUpdate, which is also how a terminal resize reaches a plugin -- switching modes live in both directions. Re-applied only when the decision flips, so it does not fight someone moving or resizing the pane by hand.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions