fzfsample: add N parameter

This commit is contained in:
mequidis
2023-03-29 21:03:54 +03:00
parent 609e7f0d85
commit 1f5db93cc7

View File

@ -1,4 +1,8 @@
#!/bin/bash #!/bin/zsh
selection=$(fzf --preview 'mpv --no-video {}' --preview-window=up:20%) FILES=$(fd . | grep "\(wav\|mp3\)$" | sort -R)
if [[ $1 ]]; then
FILES=$(echo $FILES | head -n $1)
fi
selection=$(echo $FILES | fzf --preview "mpv --no-video {}" --preview-window=up:20%)
dragon-drop --and-exit "$selection" dragon-drop --and-exit "$selection"