-
Notifications
You must be signed in to change notification settings - Fork 322
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
Maximum Pane Width #1654
base: master
Are you sure you want to change the base?
Maximum Pane Width #1654
Conversation
I feel like |
How does |
That is where on-redraw kicks in. When the width is changed, you set preferred ratio for that width. So when you use |
Agree, there is also a section in tips about that, so I guess this the standard way of doing this on
The only benefit I could see is that you don t need to set thresholds. |
OK, I get it and understand if this gets closed. I still think it's worth merging because it is a more user-friendly, "declarative" solution, though. It could become a new, better standard. |
If you want to be more declarative, there's nothing stopping you from using large numbers to represent the size in cells: cmd on-redraw %{{
if [ $lf_width -le 80 ]; then
lf -remote "send $id set ratios 1:1:1"
else
lf -remote "send $id set ratios 40:40:$((lf_width - 80))"
fi
}} |
Add option to limit the width of panes excluding the rightmost one.
To avoid overly large spacing on wide terminals without harming the layout on narrower ones.