dnkl/foot
41
2.0k
Fork
You've already forked foot
243

Display cell/character dimensions on resize #2213

Open
opened 2025年11月09日 10:10:18 +01:00 by d-koc · 2 comments

Describe your feature request

I switched to foot about half a year ago from Konsole, and been loving it so far; I've replaced most of Konsole's tab/pane functionality with tmux, but one feature I miss is Konsole's "Show hint for terminal size after resizing" option/feature, which displays a small OSD box for about a second with the number of rows/columns like Size: <x> x <y> whenever the window is resized.

I know foot has --window-size-chars and initial-window-size-chars options, but it would be very useful sometimes to have a live display of this info during interactive resize and window snapping; it's useful for quickly setting a window to a certain size to test with some program, and for checking how many cells fit within a certain region of the display. I suppose ideally the feature would be off by default so as not to annoy users who like foot's uncluttered minimalism (also along the lines of minimalism, the Size: text could be omitted).

If you aren't familiar with the feature, I could provide a demo video.

(I will admit I took a stab at implementing it myself, but I do not think I have the skill, and I'm pretty sure even if I kludged it in my code would need to be thrown out and rewritten anyway...)

### Describe your feature request I switched to foot about half a year ago from Konsole, and been loving it so far; I've replaced most of Konsole's tab/pane functionality with tmux, but one feature I miss is Konsole's "Show hint for terminal size after resizing" option/feature, which displays a small OSD box for about a second with the number of rows/columns like `Size: <x> x <y>` whenever the window is resized. I know foot has `--window-size-chars` and `initial-window-size-chars` options, but it would be very useful sometimes to have a live display of this info during interactive resize and window snapping; it's useful for quickly setting a window to a certain size to test with some program, and for checking how many cells fit within a certain region of the display. I suppose ideally the feature would be off by default so as not to annoy users who like foot's uncluttered minimalism (also along the lines of minimalism, the `Size: ` text could be omitted). If you aren't familiar with the feature, I could provide a demo video. (I will admit I took a stab at implementing it myself, but I do not think I have the skill, and I'm pretty sure even if I kludged it in my code would need to be thrown out and rewritten anyway...)
Owner
Copy link

I've considered this before, but so far I've always landed on the "not worth it" side. Leaving this open to see if there's more interest in this, but for the time being, I'm not planning on adding this.

I've considered this before, but so far I've always landed on the "not worth it" side. Leaving this open to see if there's more interest in this, but for the time being, I'm not planning on adding this.
Author
Copy link

Understood, thanks for your reply! I hope to possibly take a proper shot at it someday if you'd be open to a PR.

Understood, thanks for your reply! I hope to possibly take a proper shot at it someday if you'd be open to a PR.
Sign in to join this conversation.
No Branch/Tag specified
master
osc-5522
sixel-heap-buffer-overflow
releases/1.27
releases/1.26
releases/1.25
releases/1.24
multi-cursor
releases/1.23
pixman-16f-2
releases/1.22
releases/1.21
releases/1.20
releases/1.19
releases/1.18
releases/1.17
releases/1.16
releases/1.15
releases/1.14
releases/1.13
releases/1.12
releases/1.11
releases/1.10
releases/1.9
releases/1.8
releases/1.7
releases/1.6
releases/1.5
releases/1.4
releases/1.3
releases/1.2
releases/1.1
releases/1.0
1.27.0
1.26.1
1.26.0
1.25.0
1.24.0
1.23.1
1.23.0
1.22.3
1.22.2
1.22.1
1.22.0
1.21.0
1.20.2
1.20.1
1.20.0
1.19.0
1.18.1
1.18.0
1.17.2
1.17.1
1.17.0
1.16.2
1.16.1
1.16.0
1.15.3
1.15.2
1.15.1
1.15.0
1.14.0
1.13.1
1.13.0
1.12.1
1.12.0
1.11.0
1.10.3
1.10.2
1.10.1
1.10.0
1.9.2
1.9.1
1.9.0
1.8.2
1.8.1
1.8.0
1.7.2
1.7.1
1.7.0
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.0
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.0
0.9.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dnkl/foot#2213
Reference in a new issue
dnkl/foot
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?