From e1118f47549636df073287479251d3fe88136b11 Mon Sep 17 00:00:00 2001 From: Yash Yadavalli Date: Fri, 19 Jun 2020 21:14:37 +0000 Subject: [PATCH] Add gitflow as %, moving worktree to * - Adds `magit-gitflow-popup` as `%` keybinding in the `magit-dispatch`, mirroring the keybinding in `magit-mode-map`. - The existing binding `magit-worktree` is moved to `*` --- modules/tools/magit/config.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/tools/magit/config.el b/modules/tools/magit/config.el index 376560256..db65900d4 100644 --- a/modules/tools/magit/config.el +++ b/modules/tools/magit/config.el @@ -192,4 +192,8 @@ ensure it is built when we actually use Forge." (setcar desc (cdr key)))) (evil-define-key* evil-magit-state git-rebase-mode-map "gj" #'git-rebase-move-line-down - "gk" #'git-rebase-move-line-up))) + "gk" #'git-rebase-move-line-up)) + (transient-replace-suffix 'magit-dispatch 'magit-worktree + '("%" "Gitflow" magit-gitflow-popup)) + (transient-append-suffix 'magit-dispatch '(0 -1 -1) + '("*" "Worktree" magit-worktree)))