Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show hidden folder if yazi was opened in a subdirectory #411

Open
1 task
Rolv-Apneseth opened this issue Nov 30, 2023 · 1 comment
Open
1 task

Show hidden folder if yazi was opened in a subdirectory #411

Rolv-Apneseth opened this issue Nov 30, 2023 · 1 comment
Labels
feature New feature request

Comments

@Rolv-Apneseth
Copy link
Contributor

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

@Rolv-Apneseth Rolv-Apneseth added the feature New feature request label Nov 30, 2023
@Rolv-Apneseth Rolv-Apneseth changed the title Show hidden folder if yazi was opened in a subdirectory of that folder Show hidden folder if yazi was opened in a subdirectory Nov 30, 2023
@Rolv-Apneseth
Copy link
Contributor Author

@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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

1 participant