fish-config/functions/mpvfzf.fish
2024-09-18 21:32:11 -03:00

4 lines
2.8 KiB
Fish

function mpvfzf --wraps=mpvyt\\\\\\\ ls\\\\\\\ \\\\\\\~/Vídeos/yt-dlp\\\\\\\ \\\\\\\|\\\\\\\ fzf\\\\\\\ --reverse\\\\\\\ --prompt\\\\\\\ \\\\\\\'Play\\\\\\\ video:\\\\\\\ \\\\\\\'\\\\\\\ --bind\\\\\\\ \\\\\\\'enter:execute\\\\\\\(mpv\\\\\\\ /home/allann/Vídeos/yt-dlp/\\\\\\\{\\\\\\\}\\\\\\\)\\\\\\\' --wraps=mpvyt\ ls\ \~/Vídeos/yt-dlp\ \|\ fzf\ --reverse\ --prompt\ \'Play\ video:\ \'\ --bind\ \'enter:execute\(mpv\ /home/allann/Vídeos/yt-dlp/\{\}\)\' --wraps=ls\ \~/Vídeos/yt-dlp\ \|\ fzf\ --reverse\ --prompt\ \'Play\ video:\ \'\ --bind\ \'enter:execute\(mpv\ /home/allann/Vídeos/yt-dlp/\{\}\)\' --wraps=ls\ \~/Vídeos/yt-dlp\ \|\ fzf\ --reverse\ --prompt\ \'Play\ video:\ \'\ --bind\ \'enter:execute\(mpv\ \"/home/allann/Vídeos/yt-dlp/\{\}\"\ --x11-name=mpv-yt-dlp\)\' --wraps=ls\ \~/Vídeos/yt-dlp\ \|\ fzf\ --reverse\ --prompt\ \'Play\ video:\ \'\ --bind\ \'enter:execute\(mpv\ /home/allann/Vídeos/yt-dlp/\{\}\ --x11-name=mpv-yt-dlp\)\' --wraps=ls\ -I\ \'\*.json\'\ \~/Vídeos/yt-dlp\ \|\ fzf\ --reverse\ --prompt\ \'Play\ video:\ \'\ --bind\ \'enter:execute\(mpv\ /home/allann/Vídeos/yt-dlp/\{\}\ --x11-name=mpv-yt-dlp\)\' --wraps='ls -I "*.json" ~/Vídeos/yt-dlp | fzf --reverse --prompt "Play video: " --bind "enter:execute(mpv /home/allann/Vídeos/yt-dlp/{} --x11-name=mpv-yt-dlp)"' --wraps='find ~/Vídeos -type f -not -name "*.json" | fzf --reverse --prompt "Play video: " --bind "enter:execute(mpv /home/allann/Vídeos/yt-dlp/{} --x11-name=mpv-yt-dlp)"' --wraps='cd ~/Vídeos/yt-dlp; find . -type f -not -name "*.json" | fzf --reverse --prompt "Play video: " --bind "enter:execute(mpv /home/allann/Vídeos/yt-dlp/{} --x11-name=mpv-yt-dlp)"; cd -' --wraps='cd ~/Vídeos/yt-dlp; find . -type f -not -name "*.json" -mindepth 1 | fzf --reverse --prompt "Play video: " --bind "enter:execute(mpv /home/allann/Vídeos/yt-dlp/{} --x11-name=mpv-yt-dlp)"; cd -' --wraps='cd ~/Vídeos/yt-dlp; find . -mindepth 1 -type f -not -name "*.json" | fzf --reverse --prompt "Play video: " --bind "enter:execute(mpv /home/allann/Vídeos/yt-dlp/{} --x11-name=mpv-yt-dlp)"; cd -' --wraps='cd ~/Vídeos/yt-dlp; find . ! -path . -type f -not -name "*.json" | fzf --reverse --prompt "Play video: " --bind "enter:execute(mpv /home/allann/Vídeos/yt-dlp/{} --x11-name=mpv-yt-dlp)"; cd -' --wraps='cd ~/Vídeos/yt-dlp; find * -type f -not -name "*.json" | fzf --reverse --prompt "Play video: " --bind "enter:execute(mpv /home/allann/Vídeos/yt-dlp/{} --x11-name=mpv-yt-dlp)"; cd -' --description 'alias mpvfzf cd ~/Vídeos/yt-dlp; find * -type f -not -name "*.json" | fzf --reverse --prompt "Play video: " --bind "enter:execute(mpv /home/allann/Vídeos/yt-dlp/{} --x11-name=mpv-yt-dlp)"; cd -'
cd ~/Vídeos/yt-dlp; find * -type f -not -name "*.json" | fzf --reverse --prompt "Play video: " --bind "enter:execute(mpv /home/allann/Vídeos/yt-dlp/{} --wayland-app-id=mpv-yt-dlp)"; cd - $argv;
end