yazi
yazi copied to clipboard
Show hidden folder if yazi was opened in a subdirectory
Is your feature request related to a problem? Please describe
I opened yazi
within a .config
subdirectory (using stow
so e.g. progam/.config/program
) and of course since hidden files weren't being shown, trying to navigate backwards had an empty column where the .config
directory would be.
This is very minor and I will personally just keep hidden files shown all the time, but for a minute there I was confused when first using the program.
Will you be willing to contribute this feature?
- [ ] Yes, I'll give it a shot
Describe the solution you'd like
Would it be possible to show a hidden directory, if yazi
was opened in a subdirectory? This would allow navigating away and back to the original cwd
, even if it is a subdirectory of a hidden folder, and avoid having an empty column.
Describe alternatives you've considered
No response
Additional context
No response
@sxyazi kind of forgot I opened this one - I could have a go.
Would this be something you care about, and if so, how would you approach the problem? I thought of doing something like this to just add the hidden file to the shown items
in parent.lua
but hovered
isn't set if the file is hidden I guess:
local f = folder.hovered
items[#items + 1] = ui.ListItem(ui.Line({ Folder:icon(f), ui.Span(f.name) })):style(THEME.manager.hovered)