Created
April 8, 2011 11:54
-
-
Save tkf/909694 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| zmodload zsh/parameter | |
| function zaw-src-z() { | |
| : ${(A)candidates::=`z 2>&1 | sed -n -e '2,$p' | sed 's/^[0-9\\. ]*//' | tac`} | |
| actions=("zaw-callback-execute" "zaw-callback-replace-buffer" "zaw-callback-append-to-buffer") | |
| act_descriptions=("execute" "replace edit buffer" "append to edit buffer") | |
| } | |
| zaw-register-src -n z zaw-src-z |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment