solorice/config/yazi/plugins/hide-preview.yazi
Kristofers Solo f298468e99 Update 2025-03-30
Update 2025-03-03

Update 2025-03-07

Update 2025-03-13

Update 2025-03-14

Update 2025-03-22

Update 2025-03-24

Update 2025-03-29
2025-04-16 13:47:12 +03:00
..
LICENSE Use dotter 2024-08-28 09:02:07 +03:00
main.lua Update 2025-03-30 2025-04-16 13:47:12 +03:00
README.md Update 2025-02-24 2025-04-16 13:46:48 +03:00

hide-preview.yazi

Warning

This plugin has been deprecated. Please use the new toggle-pane.yazi instead.

Switch the preview pane between hidden and shown.

https://github.com/yazi-rs/plugins/assets/17523360/c4f0b5c4-ff9f-4be8-ba73-4d8e7902e383

Installation

ya pack -a yazi-rs/plugins:hide-preview

Usage

Add this to your ~/.config/yazi/keymap.toml:

[[manager.prepend_keymap]]
on   = "T"
run  = "plugin hide-preview"
desc = "Hide or show preview"

Make sure the T key is not used elsewhere.

Advanced

In addition to triggering the plugin with a keypress, you can also trigger it in your init.lua file:

if os.getenv("NVIM") then
	require("hide-preview"):entry()
end

In the example above, when it detects that you're using Yazi in nvim, the preview is hidden by default - you can always press T (or any key you've bound) to display it again.

License

This plugin is MIT-licensed. For more information check the LICENSE file.