From b63673e621828313c9bfe5f4550cf482dc020dbb Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Sat, 18 Sep 2021 20:26:56 +0200 Subject: [PATCH] Add counsel commands --- files/init.el | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/files/init.el b/files/init.el index 8ac8e63..b4f3d17 100644 --- a/files/init.el +++ b/files/init.el @@ -295,6 +295,7 @@ :bind (("M-x" . counsel-M-x) ("C-x b" . counsel-ibuffer) ("C-x C-f" . counsel-find-file) + ("C-x C-g" . counsel-git) :map minibuffer-local-map ("C-r" . 'counsel-minibuffer-history))) @@ -403,16 +404,17 @@ :straight t :general (vim-leader-def 'normal 'global - "gj" 'magit-blame - "gc" 'magit-commit - "gp" 'magit-push - "gu" 'magit-pull - "gs" 'magit-status - "gd" 'magit-diff - "gl" 'magit-log - "gc" 'magit-checkout "gb" 'magit-branch - "gi" 'magit-gitignore-in-topdir)) + "gc" 'magit-checkout + "gc" 'magit-commit + "gd" 'magit-diff + "gg" 'counsel-git-grep + "gi" 'magit-gitignore-in-topdir + "gj" 'magit-blame + "gl" 'magit-log + "gp" 'magit-push + "gs" 'magit-status + "gu" 'magit-pull)) ;; File bar (use-package treemacs