From 13e4cd409373a1ab9cc2f574c286582eef6cbe51 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sun, 3 Apr 2022 22:29:38 +0800 Subject: update --- zsh/_wi.sh | 2 +- zsh/_ww.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'zsh') diff --git a/zsh/_wi.sh b/zsh/_wi.sh index c1cd4a8..d99518b 100644 --- a/zsh/_wi.sh +++ b/zsh/_wi.sh @@ -1,7 +1,7 @@ #compdef wi function _wi() { - compadd -S '' $(cd ~/vimwiki && ls ${words[2]}*) + compadd -S '' $(cd ~/vimwiki && find -not -path "./logseq/*" -name '*.md' -printf "%f\n" | sed -E '/^[0-9]{4}-[0-9]{2}-[0-9]{2}/d') } _wi diff --git a/zsh/_ww.sh b/zsh/_ww.sh index 76afae8..d998099 100644 --- a/zsh/_ww.sh +++ b/zsh/_ww.sh @@ -1,7 +1,7 @@ #compdef ww function _ww() { - compadd -S '' $(cd ~/vimwiki && ls ${words[2]}*) + compadd -S '' $(cd ~/vimwiki && find -not -path "./logseq/*" -name '*.md' -printf "%f\n" | sed -E '/^[0-9]{4}-[0-9]{2}-[0-9]{2}/d') } _ww -- cgit v1.2.3-70-g09d2