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

If broot hide all files in current folder (gitignored or hidden) show some hint on how unhide them #556

Closed
burkov opened this issue May 26, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@burkov
Copy link

burkov commented May 26, 2022

image

I've encountered a nasty problem with br which I think can be quite widespread among developers and ruins first experience with br (it took me about 30 minutes to find the root cause). At the first glance it looked like a some bug file listing permissions or similar issue, but it turned out that it is related to hidden files.

I store all my dotfiles at github. br by default ignores .gitignore-ed files, but I have .gitignore in my $HOME with * pattern as a first line (i.e. ignore ALL files except whitelisted). so br ignores ALL files in my home and shows literally nothing (dotfiles are hidden also).

I think you can show some hint in case br lists an "empty" folder, something like "press alt + i to show gitignored files, press alt + h to show hidden files"

@burkov burkov added the enhancement New feature or request label May 26, 2022
@Canop
Copy link
Owner

Canop commented May 26, 2022

It's not just the .gitignore: you must have also defined your home directory as a git repository or the gitignore rules wouldn't have been applied by broot. The usual practice is rather to symlink the relevant files.

@burkov
Copy link
Author

burkov commented May 26, 2022

yeap, that's true, I also have an initialized repository inside of my home.

The usual practice is rather to symlink the relevant files.

hm, yeap, that's a good idea :D

still I think some hint would be helpful in the described scenario

@Canop
Copy link
Owner

Canop commented May 26, 2022

still I think some hint would be helpful in the described scenario

Yes, your issue stays relevant.

@Canop
Copy link
Owner

Canop commented Jun 7, 2022

Incoming:
image

@Canop Canop closed this as completed in dcdf9d6 Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants