diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-04-17 11:20:02 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-04-17 11:20:02 +0800 |
commit | 0ba215bd0f5f7dd160783e3782d40cbfc249a0fd (patch) | |
tree | 4ec7a4366d662dc8b52fa0df2cc52e01ada399b7 /zsh/_ww.sh | |
parent | 7554b23b59bfe3b57ba46726b17063c17b052567 (diff) | |
parent | 38a86b051449b1004e8e098c8c831ae974e5102b (diff) |
Merge remote-tracking branch 'origin/dev' into dev
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 |