rat
rat copied to clipboard
Add an action to list hotkeys on current mode pane
such as
bindkey F1 show-global-bindkey
bindkey F2 show-mode-bindkey
press F2, open an pane and list bindkeys:
git.misc
annotate match git.commit -- git rev-list --all --reflog --abbrev=2 --abbrev-commit
annotate match git.filename -- git ls-files
annotate match git.ref -- git for-each-ref --format='%(refname)%0a%(refname:short)'
bindkey s git.commit git.show -- >git show --stat=400 -p %(git.commit)
bindkey v git.filename git.source -- >cat "%(git.filename)"
bindkey b git.filename git.blame -- >git blame -- "%(git.filename)"
bindkey l git.ref git.log -- >git log %(git.ref)
bindkey S-r git.commit -- ?!git rebase --interactive %(git.commit)
bindkey S-f git.commit -- ?!git commit --fixup=%(git.commit)
Might be useful?