branch: elpa/git-commit commit 9bec1c54ab0705eb68ae4aa6c8a0498999a018f6 Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
magit-{mode-map,dispatch}: Add bindings for "H", "Q" and "Z" --- Documentation/RelNotes/3.3.0.org | 3 +++ lisp/magit-mode.el | 6 ++++-- lisp/magit.el | 6 ++++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Documentation/RelNotes/3.3.0.org b/Documentation/RelNotes/3.3.0.org index adea68c..9f7b760 100644 --- a/Documentation/RelNotes/3.3.0.org +++ b/Documentation/RelNotes/3.3.0.org @@ -23,6 +23,9 @@ and variants for switching to any existing Magit buffer belonging to the current repository. #4259 +- A few existing commands got a new or better binding in + ~magit-dispatch~ and/or ~magit-mode-map~. + ** Fixes since v3.2.0 - Make ~magit-branch-remote-head~ and ~magit-branch-current~ fall back diff --git a/lisp/magit-mode.el b/lisp/magit-mode.el index 7bb620d..4d8e12b 100644 --- a/lisp/magit-mode.el +++ b/lisp/magit-mode.el @@ -362,6 +362,7 @@ recommended value." (define-key map "G" 'magit-refresh-all) (define-key map "h" 'magit-dispatch) (define-key map "?" 'magit-dispatch) + (define-key map "H" 'magit-describe-section) (define-key map "i" 'magit-gitignore) (define-key map "I" 'magit-init) (define-key map "j" 'magit-status-quick) @@ -376,6 +377,8 @@ recommended value." (define-key map "O" 'magit-subtree) (define-key map "P" 'magit-push) (define-key map "q" 'magit-mode-bury-buffer) + (define-key map "Q" 'magit-git-command) + (define-key map ":" 'magit-git-command) (define-key map "r" 'magit-rebase) (define-key map "R" 'magit-file-rename) (define-key map "s" 'magit-stage-file) @@ -393,10 +396,9 @@ recommended value." (define-key map "y" 'magit-show-refs) (define-key map "Y" 'magit-cherry) (define-key map "z" 'magit-stash) - (define-key map "Z" 'magit-stash) + (define-key map "Z" 'magit-worktree) (define-key map "%" 'magit-worktree) (define-key map "$" 'magit-process-buffer) - (define-key map ":" 'magit-git-command) (define-key map "!" 'magit-run) (define-key map (kbd "C-c C-c") 'magit-dispatch) (define-key map (kbd "C-c C-e") 'magit-edit-thing) diff --git a/lisp/magit.el b/lisp/magit.el index 33c960d..b613094 100644 --- a/lisp/magit.el +++ b/lisp/magit.el @@ -308,6 +308,7 @@ Also see info node `(magit)Commands for Buffers Visiting Files'." [("f" "Fetch" magit-fetch) ("F" "Pull" magit-pull) ("h" "Help" magit-help) + ("H" "Section info" magit-describe-section :if-derived magit-mode) ("i" "Ignore" magit-gitignore) ("I" "Init" magit-init) ("j" "Jump to section"magit-status-jump :if-mode magit-status-mode) @@ -320,6 +321,7 @@ Also see info node `(magit)Commands for Buffers Visiting Files'." ("o" "Submodule" magit-submodule) ("O" "Subtree" magit-subtree)] [("P" "Push" magit-push) + ("Q" "Command" magit-git-command) ("r" "Rebase" magit-rebase) ("t" "Tag" magit-tag) ("T" "Note" magit-notes) @@ -330,8 +332,8 @@ Also see info node `(magit)Commands for Buffers Visiting Files'." [("y" "Show Refs" magit-show-refs) ("Y" "Cherries" magit-cherry) ("z" "Stash" magit-stash) - ("!" "Run" magit-run) - ("%" "Worktree" magit-worktree)]] + ("Z" "Worktree" magit-worktree) + ("!" "Run" magit-run)]] ["Applying changes" :if-derived magit-mode [("a" "Apply" magit-apply)