From 3bfd64b05beebc0ddf7fa54f21a75cc4ed4a4edb Mon Sep 17 00:00:00 2001 From: Peter Date: Mon, 21 Feb 2022 21:36:40 +0000 Subject: More robust todo function --- .config/fish/config.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config') diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 4594c3e..1b08254 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -33,7 +33,7 @@ alias dotfiles='git --git-dir="$SYNCDIR/src/dotfiles" --work-tree="$HOME"' 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 todo='find "$SYNCDIR" -maxdepth 3 -type f -name 'todo.txt' -exec $EDITOR {} \;' alias vaultedit='find "$SYNCDIR" -maxdepth 5 -type f | fzf --preview "cat {}" --layout reverse | xargs -r -I{} "$EDITOR" "{}"' # Functions -- cgit v1.2.3