summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter2022-02-21 21:36:40 +0000
committerPeter2022-02-21 21:36:40 +0000
commit3bfd64b05beebc0ddf7fa54f21a75cc4ed4a4edb (patch)
tree9902ad27b33bc940df9e4694c63cfdb343fb9fa0
parent21b1286ab7a0fd59a27eb6246e0da5e205208ab2 (diff)
downloaddotfiles-3bfd64b05beebc0ddf7fa54f21a75cc4ed4a4edb.tar.gz
dotfiles-3bfd64b05beebc0ddf7fa54f21a75cc4ed4a4edb.tar.bz2
dotfiles-3bfd64b05beebc0ddf7fa54f21a75cc4ed4a4edb.zip
More robust todo function
-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 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