Why do some directories not want to show up? And how to avoid wine clutter? #3213
Replies: 4 comments 2 replies
-
There is an environment variable that sets the default fzf command. I forget what they use as a command default but this is how I have mine set in a file that I source in my .zshrc and .bashrc. You can set it anywhere so long as you shell can find the environment variable.
This uses ripgrep to find files and hidden files in the home dir as the default fzf command.
I would personally just do this manually and write a quick little bash script that uses find or fd to look only in the dirs that I want. ie:
but xargs and mpv sometimes dont mix, so I recommend the first one or some variant of that. Depending on your terminal you can write a preview script (or find one like fzf-ueberzug) and use that to preview the files with images. Ueberzug is really the only image viewer that works with fzf now, icat/kitty used to work but not anymore. You could have a case statement that reads the filetype and then decides how to preview it. exiftool is a good script to use to look at audio/video and picture files and will tell you their length and more. |
Beta Was this translation helpful? Give feedback.
-
Thank you. I'd really like to avoid specific commands. For the wine prefixes I'd probably have to exclude the For the folders that don't show up, I'm not sure how your suggestions would help with that, because I don't actually know what the issue is, or why it's happening. I didn't know about exiftool, that sounds very useful! |
Beta Was this translation helpful? Give feedback.
-
I did put it in .zshrc, the screenshot was for clarity's sake. The first command does ignore the wine directories when I launch it like that, maybe Although |
Beta Was this translation helpful? Give feedback.
-
I never set those variables. The first example returns a very limited set of results. I'm unsure what to do with the rest of the information you provide. I tried unsetting them but it doesn't change the behavior. I also tried setting the alt c command variable to the same command as FZF_DEFAULT_COMMAND, but that doesn't work at all. EDIT I have now tried replacing all the env variables with simple |
Beta Was this translation helpful? Give feedback.
-
For example, I have ~/Music and ~/Series
Both directories are symlinked from another drive, yet triggering fzf and typing
mus
immediately yields~/Music
, but the same is not true for series.What shows up is unrelated directories and a lot of wine prefix subdirectories. In fact wine subdirectories are basically spam when I search for something I can't find, can I set fzf to avoid going into any wine prefix?
Beta Was this translation helpful? Give feedback.
All reactions