aboutsummaryrefslogtreecommitdiffhomepage
path: root/zsh/_wi.sh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/_wi.sh')
-rw-r--r--zsh/_wi.sh6
1 files changed, 5 insertions, 1 deletions
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 @@
1#compdef wi 1#compdef wi
2 2
3function _wi() { 3function _wi() {
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_wi 11_wi