Source

zaw-sources / zaw-cd-sub.zsh

Full commit
1
2
3
4
5
6
7
8
function zaw-src-cd-sub() {
    candidates=("${(ps:\0:)$(find . -type d -print0)[1,-2]}")
    actions=("zaw-callback-execute" "zaw-callback-append-to-buffer")
    act_descriptions=("execute" "append to edit buffer")
    options=("-m")
}

zaw-register-src -n cd-sub zaw-src-cd-sub