aboutsummaryrefslogtreecommitdiffhomepage
path: root/zsh
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2022-05-05 09:21:13 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2022-05-05 09:21:13 +0800
commitb056183fb493764187546abcd6cd99d9fdfa90dc (patch)
tree85cb2b11b7cd8d13776faf09ecb18efefee4b43e /zsh
parent55c142e4835a748df659ed1e67035145e7452893 (diff)
Update
Diffstat (limited to 'zsh')
-rw-r--r--zsh/_wwd.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/zsh/_wwd.sh b/zsh/_wwd.sh
new file mode 100644
index 0000000..4161132
--- /dev/null
+++ b/zsh/_wwd.sh
@@ -0,0 +1,11 @@
1#compdef wwd
2
3function _wwd() {
4 compadd -S '' $(
5 cd ~/vimwiki/diary/ && \
6 find -name '*.md' -printf "%f\n" | \
7 sed -E 's/.md$//'
8 )
9}
10
11_wwd