Extend h and l to adjust preview size.
smart-pane.demo.mp4
Pressing l on a file progressively hides the parent panel, then the current panel, maximizing the preview. Pressing h restores them. Pressing l on a directory enters it as normal.
ya pkg add tpsteiner/smart-paneAdd to your ~/.config/yazi/keymap.toml:
[[mgr.prepend_keymap]]
on = "h"
run = "plugin smart-pane leave"
desc = "Smart leave"
[[mgr.prepend_keymap]]
on = "l"
run = "plugin smart-pane enter"
desc = "Smart enter"This plugin is MIT-licensed. For more information check the LICENSE file.
Shoutout to sxyazi for creating toggle-pane, which this plugin is based on.