Skip to content

Instantly share code, notes, and snippets.

@f440
Created December 30, 2012 05:56
Show Gist options
  • Save f440/4411205 to your computer and use it in GitHub Desktop.
Save f440/4411205 to your computer and use it in GitHub Desktop.
function zaw-src-hg-files() {
hg root >/dev/null 2>&1
if [[ $? == 0 ]]; then
candidates=("${(ps:\0:)$(hg status -cman0)[1,-2]}")
fi
actions=("zaw-callback-edit-file" "zaw-callback-append-to-buffer")
act_descriptions=("edit file" "append to edit buffer")
options=("-m")
}
zaw-register-src -n hg-files zaw-src-hg-files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment