aboutsummaryrefslogtreecommitdiffhomepage
path: root/zsh/_ww.sh
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2022-04-17 11:20:02 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2022-04-17 11:20:02 +0800
commit0ba215bd0f5f7dd160783e3782d40cbfc249a0fd (patch)
tree4ec7a4366d662dc8b52fa0df2cc52e01ada399b7 /zsh/_ww.sh
parent7554b23b59bfe3b57ba46726b17063c17b052567 (diff)
parent38a86b051449b1004e8e098c8c831ae974e5102b (diff)
Merge remote-tracking branch 'origin/dev' into dev
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