From d77cb820122db3ce92dc67d0810886ff6b853987 Mon Sep 17 00:00:00 2001 From: anemofilia Date: Sun, 13 Aug 2023 07:56:55 -0300 Subject: [PATCH] fix: automatically add double quotes for links passed to v or m abbreviations --- files/fish/fish_abbreviations | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/fish/fish_abbreviations b/files/fish/fish_abbreviations index 9f6e9da..718ac6e 100644 --- a/files/fish/fish_abbreviations +++ b/files/fish/fish_abbreviations @@ -1,8 +1,8 @@ -abbr --add m 'yt-dlp --prefer-free-formats --extract-audio' -abbr --add v 'yt-dlp --prefer-free-formats' +abbr --add m --set-cursor 'yt-dlp --prefer-free-formats --extract-audio "%"' +abbr --add v --set-cursor 'yt-dlp --prefer-free-formats "%"' abbr --add zedit --set-cursor "zcat % | $EDITOR" -abbr --add tf --set-cursor 'setsid -f % >/dev/null 2>&1 & disown' +abbr --add tf --set-cursor 'setsid -f %>/dev/null 2>&1 & disown' abbr --add zxz --set-cursor 'curl -F "file=@%" https://0.vern.cc | xsel -b' abbr --add mpv --position anywhere --set-cursor 'mpv "%"'