-
Notifications
You must be signed in to change notification settings - Fork 4
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
Any way to toggle show/hide hidden directories and files? #8
Comments
Hi! Thanks a lot, I'm really glad, that you like this project! About image previews - yea, I'm also excited about this! I wasn't giving it too much yet though, but currently I think that I'll choose different strategies depending on terminal emulator with a fallback of covering image to a set of colorful half-blocks. You can share your suggestions! About opening files - currently |
Yeah these days you've got to cover all bases when it comes to images in the terminal. Kitty image protocol, sixel, ueberzug++, chafa etc... is a bit of a task I know. However, implementing the use of an opener script first would say least allow the user to open image files with an image viewer. I use my terminal for browser to open all files, PDFs, XMLs, PNGs.. anything. So an opener script would be great. using XDG_OPEN would also work, but I l personally prefer to have fine grained control using a script. I currently use the following script with
|
Noted, thank you! Customizable openers for different filetypes look great, I would love to implement it! |
@pfr-dev Hey! I sat down to think about your feature request and made a quick PR, but I'm kinda hesitant... I'll be glad if you cared to look at my approach and let me know what you think. Do you think, that toggling is fine (or even better) only for current directory and not the whole tree? |
Work kinda like this. As you can see, I can toggle hidden files only on a single "depth level". |
Hmmmm cool idea! But... I think if you want to only toggle hidden files within a current directory, then it should also include all subdirectories. Otherwise, it might get confusing if you have to keep toggling fore every subdirectory. What to you think? |
I'm not sure here. What if you want to disable hidden for current, and enable for children? You will just need to toggle it in every child. So I think, that it's more or less the same in terms of functionality, could be a bit more confusing from my perspective, but if I'm being honest, I don't necessarily like either option xD I looked at how it's done in |
May be I could make some sort of indicator, that will show, that hidden directories are actually hidden... Idk, need to experiment |
I guess here-in lies the problem with a tree style file manager. If you've got Lots and lots of files, it quickly becomes difficult to navigate. But I see what you're saying, and I agree, an indicator to let you know that a directory contains hidden files is a good idea and your example above looks perfect! I have one more suggestion which might help with space saving while navigating large directories. Please let me know if you'd like me to split this into another issue, but for now I feel it's kind of relevant here. What if, when you navigate to a subdirectory, the parent directory collapses, only showing the name of the parent directory but not every other subdirectory there within? |
Well, It's an interesting idea, but if I understood you correctly, it will just remove all the other context, that could be helpful. E.g. I want to move
I'll see this:
No real point of having a tree structure with such rendering. |
I think, that if space is the issue in large directories, then it may be should be solved by other means, like faster up/down movement (like Ctrl+u/d in vim), or searching filename, or leaving marks. |
Yeah ok, you're right (again!) haha I think this works well. The indicator idea is great because I'll generally know which subdirectory my needed dotfiles are so I can just expand that particular dir instead of all of them. Has this been implemented in the master tree yet? Would love to test it out. I'm really excited for this. Can't wait until you've ticked everything off the TODO list! Oh, and also rewrite it in Rust 🦀 😆 |
nope, just in pr yet #9 Thanks man, I really appreciate your interest in this project! |
Back on the custom Oh, and one more!... cd to current dir on exit I often will just use |
Yea, I would love to add more customization! |
Firstly, let me just say thank you. This program is awesome and I will be switching to it permanently once it's close to feature complete. I've used
nnn
,fff
,shfm
,ranger
,lf
etc. for a long time. But this implementation using thetree
is just awesome!I wonder if it could be possible to toggle show/hide hidden dirs and files? that would be neat. I assume that if you're leveraging the
tree
command then simply dropping the-a
flag should do it?I'm also excited for you're implementation of image previews.. I'm curious what route you might take for this?
EDIT
I'm also curious how to set default programs for opening files? for example, I'm attempting to open an image file but it obviously doesn't know with which program to open it. where can I set this? Is there an
opener
file that it needs to read?The text was updated successfully, but these errors were encountered: