Restructuring the repo
This commit is contained in:
parent
21e3cf65e6
commit
3d67598c27
45 changed files with 368 additions and 77 deletions
20
misc/vf
Executable file
20
misc/vf
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/zsh
|
||||
zparseopts -D -E -ext:=ext e:=ext h=help -help=help
|
||||
|
||||
if [[ -n $help ]]; then
|
||||
<<-HELP
|
||||
Usage: ${0:t} [-e EXT | PATTERN] [DIR...]
|
||||
|
||||
Find files with fd, show them with fzf and open selected files via xdg-open.
|
||||
|
||||
Either -e with a file extension or a pattern can be given to narrow search.
|
||||
Any further arguments are passed to fd as search path.
|
||||
HELP
|
||||
exit
|
||||
fi
|
||||
|
||||
if [[ -n $ext ]]; then
|
||||
fd -e ${ext[2]} . "$@"
|
||||
else
|
||||
fd "$@"
|
||||
fi | fzf | xargs --null xdg-open
|
Loading…
Add table
Add a link
Reference in a new issue