Skip to content

Instantly share code, notes, and snippets.

@tkf
Created April 8, 2011 11:54
Show Gist options
  • Select an option

  • Save tkf/909694 to your computer and use it in GitHub Desktop.

Select an option

Save tkf/909694 to your computer and use it in GitHub Desktop.
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