Add zsh anything.el plugin
[zsh.git] / .zsh / zaw / sources / fasd.zsh
1 function zaw-src-fasd () {
2 candidates=($(fasd -alR))
3 actions=(zaw-callback-append-to-buffer)
4 act_descriptions=("append to edit buffer")
5 options+=(-n -m)
6 }
7
8
9 function zaw-src-fasd-files () {
10 candidates=($(fasd -flR))
11 actions=(zaw-callback-append-to-buffer)
12 act_descriptions=("append to edit buffer")
13 options+=(-n -m)
14 }
15
16
17 function zaw-src-fasd-directories () {
18 candidates=($(fasd -dlR))
19 actions=(zaw-callback-append-to-buffer)
20 act_descriptions=("append to edit buffer")
21 options+=(-n -m)
22 }
23
24
25 zaw-register-src -n fasd zaw-src-fasd
26 zaw-register-src -n fasd-directories zaw-src-fasd-directories
27 zaw-register-src -n fasd-files zaw-src-fasd-files