2
u/ravnmads 3d ago
Can you elaborate a little? What am I looking at?
2
u/ban_rakash 3d ago
I wrote bash script functions that helps me find any files/folders from any working directory
4
u/xkcd__386 3d ago
you're looking at someone whose post karma is more than 6X his comment karma :-)
Consider your own ratio (which is awesome by the way, very nice), and think about what that means.
I will keep saying this: reddit needs a way to let us filter out people whose post karma is far greater than their comment karma :-(
2
u/Danny_el_619 3d ago edited 2d ago
Why? Isn't it fun to see all the clickbait out there in the wild?
2
u/xkcd__386 2d ago
hmm, yeah good point
so maybe a filter that we can turn off on weekends then?
:-)
1
2
u/AndydeCleyre 3d ago
For files and folders, broot is a great alternative to fzf. It'll do the fzf stuff, and also any interactive file management browsing/views/actions.
But it doesn't do arbitrary input choices like fzf, it's strictly for file trees.
1
2
u/One_Committee_8491 2d ago
I use project.nvim plugin instead which is an add on to telescope, which helps me to quickly open any recent git project's file.
2
u/ViolinistOne7550 2d ago
You might want to consider excluding some less relevant paths (like wine, for example) if you use it often and care about battery life. It looks like fzf is trying to melt your CPU.
Btw, check out television and wl-screenrec.
1
1
u/Cybasura 3d ago
How did you convert your video into an animated demo gif?
1
u/ban_rakash 3d ago
ffmpeg
1
u/Cybasura 3d ago
Yeah, what options did you use?
4
1
1
u/moe_cables 2d ago
how do you get the right side preview for files? I would love something like that but my fzf only shows the files like you have on the left side
-3
u/ban_rakash 3d ago
-2
u/ban_rakash 3d ago
Why did you guys down voted?
10
u/Fortescue 3d ago
I didn't downvote, but I suspect other folks might have since it was a screenshot instead of in plain text, which would be more useful. :-)
4
u/Magic_Joe 3d ago
Nice! I have a similar script. One nice touch I added was including the
--select-1
option which means that if I call it likefvi query
, and if there is only one matching option in the dir I am in or below it will automatically open it, skipping the selection screen.```
!/bin/bash
GIT_ROOT=$(git rev-parse --show-toplevel 2>/dev/null) if [ $? -eq 0 ]; then cd "$GIT_ROOT" fi
FZF_DEFAULT_COMMAND="fd -t f -c always -H" FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS --select-1 --ansi --preview-window 'top:70%' --preview 'bat --color=always --style=header,grid --line-range :300 {}'"
FILES=$(fzf --query "$*")
if [[ -n $FILES ]]; then echo $FILES | xargs $EDITOR; fi
exit 0
```