Skip to content

Add an action to list hotkeys on current mode pane #41

@rocaltair

Description

@rocaltair

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions