Restructuring the repo

This commit is contained in:
Alexander Gehrke 2020-04-02 10:38:36 +02:00
parent 21e3cf65e6
commit 3d67598c27
45 changed files with 368 additions and 77 deletions

20
bin/vf
View file

@ -1,20 +0,0 @@
#!/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