A plugin for yazi to hide/unhide files or folders in windows.
ya pack -a 'Tyarel8/whide'
Add this to your keymap.toml
:
[manager]
prepend_keymap = [
{ on = [ "'", "h" ], run = "plugin whide --args='hide'", desc = "Hide files" },
{ on = [ "'", "H" ], run = "plugin whide --args='unhide'", desc = "Unhide files" },
{ on = [ "'", "<A-h>" ], run = "plugin whide --args='toggle'", desc = "Toggle hidden status" },
]
It will apply to all selected or hovered if there is no selection.
Important
When hiding a file, yazi will either show the file still normal, or show the file hidden along with the previous normal file until you do something like opening a new tab or closing yazi and opening it again.