diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-04-15 08:59:55 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-04-15 08:59:55 +0800 |
commit | 7bcdb84b1ebf1741c426947e811d32452ce6031f (patch) | |
tree | 835b44ca9fdffc76c74561dfb6ee6590a803e9c6 /zsh/_ww.sh | |
parent | 0452e8413309db16634e7b8e3188c90da8700b02 (diff) |
Update
Diffstat (limited to 'zsh/_ww.sh')
-rw-r--r-- | zsh/_ww.sh | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,7 +1,11 @@ | |||
1 | #compdef ww | 1 | #compdef ww |
2 | 2 | ||
3 | function _ww() { | 3 | function _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 |