Initial commit

This commit is contained in:
Alexander Gehrke 2019-09-30 14:49:14 +02:00
commit cefd40b6dc
31 changed files with 1028 additions and 0 deletions

20
bin/vf Executable file
View 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