Commits

Takafumi Arakaki committed a9d8cc0

added zaw-cd-sub.zsh which finds sub-directory tree and choose one to cd

Comments (0)

Files changed (1)

+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