aboutsummaryrefslogtreecommitdiffhomepage
path: root/zsh/_ww.sh
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2022-04-15 08:59:55 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2022-04-15 08:59:55 +0800
commit7bcdb84b1ebf1741c426947e811d32452ce6031f (patch)
tree835b44ca9fdffc76c74561dfb6ee6590a803e9c6 /zsh/_ww.sh
parent0452e8413309db16634e7b8e3188c90da8700b02 (diff)
Update
Diffstat (limited to 'zsh/_ww.sh')
-rw-r--r--zsh/_ww.sh6
1 files changed, 5 insertions, 1 deletions
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 @@
1#compdef ww 1#compdef ww
2 2
3function _ww() { 3function _ww() {
4 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') 4 compadd -S '' $(
5 cd ~/vimwiki && \
6 find -not -path "./logseq/*" -name '*.md' -printf "%f\n" | \
7 sed -E '/^[0-9]{4}-[0-9]{2}-[0-9]{2}/d; s/.md$//'
8 )
5} 9}
6 10
7_ww 11_ww