summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/fish/config.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/fish/config.fish b/.config/fish/config.fish
index fe52f38..8c48c93 100644
--- a/.config/fish/config.fish
+++ b/.config/fish/config.fish
@@ -38,7 +38,7 @@ alias empties='find . -maxdepth 3 -mount -not -path "*/\.*" -empty'
alias mpv-hdmi='mpv --fs --audio-device=alsa/hdmi:CARD=PCH,DEV=0'
alias screenoff='sleep 0.5s && pkill -USR1 swayidle'
alias todo='$EDITOR (find "$SYNCDIR" -maxdepth 5 -type f -name 'todo.txt')'
-alias vaultedit='find "$SYNCDIR" -maxdepth 5 -type f | fzf --preview "cat {}" --layout reverse | xargs -r "$EDITOR"'
+alias vaultedit='find "$SYNCDIR" -maxdepth 5 -type f | fzf --preview "cat {}" --layout reverse | xargs -r -I{} "$EDITOR" "{}"'
# Functions
function fractodec; echo "scale=2; $argv" | bc; end