Toggle-able pane ratios #1938
-
|
I have this command that disables preview and re-adjusts pane ratios (collapsing the third one). This command is almost toggle-able except for the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
It is possible. Lf exposes a lot of states as variables. You can use You can try to do something like I use |
Beta Was this translation helpful? Give feedback.
-
|
This kind of use case is already mentioned in the wiki: https://github.com/gokcehan/lf/wiki/Tips#toggling-the-preview-column Something like below should work: map <a-p> &{{
if [ "$lf_preview" = true ]; then
lf -remote "send $id :set preview false; set ratios 1:5"
else
lf -remote "send $id :set preview true; set ratios 1:2:3"
fi
}} |
Beta Was this translation helpful? Give feedback.
-
|
This is helpful. Thank you all |
Beta Was this translation helpful? Give feedback.
This kind of use case is already mentioned in the wiki: https://github.com/gokcehan/lf/wiki/Tips#toggling-the-preview-column
Something like below should work: