From 7bcdb84b1ebf1741c426947e811d32452ce6031f Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 15 Apr 2022 08:59:55 +0800 Subject: Update --- zsh/_wi.sh | 6 +++++- zsh/_ww.sh | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'zsh') diff --git a/zsh/_wi.sh b/zsh/_wi.sh index d99518b..f33d0ae 100644 --- a/zsh/_wi.sh +++ b/zsh/_wi.sh @@ -1,7 +1,11 @@ #compdef wi function _wi() { - 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') + 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; s/.md$//' + ) } _wi diff --git a/zsh/_ww.sh b/zsh/_ww.sh index d998099..2a1e323 100644 --- a/zsh/_ww.sh +++ b/zsh/_ww.sh @@ -1,7 +1,11 @@ #compdef ww function _ww() { - 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') + 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; s/.md$//' + ) } _ww -- cgit v1.2.3-70-g09d2