Skip to content

Commit

Permalink
tweak(consult): add more useful keybindings
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 9, 2023
1 parent 6228628 commit 1fb5994
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions core/me-completion.el
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ This depends on `+cape-hosts' and `+cape-global-capes'."
(keymap-global-set "C-s" 'consult-line)
(+map!
;; buffer
"bl" #'consult-line
"bll" #'consult-line
"blf" #'consult-focus-lines
"blk" #'consult-keep-lines
"blg" #'consult-goto-line
"bb" #'consult-buffer
"bB" #'consult-buffer-other-window
"bF" #'consult-buffer-other-frame
Expand All @@ -169,13 +172,13 @@ This depends on `+cape-hosts' and `+cape-global-capes'."
;; git/vc
"gG" #'consult-git-grep
;; search
"ss" #'consult-ripgrep
"sg" #'consult-grep
"sf" #'consult-find
"ss" (if (executable-find "rg") #'consult-ripgrep #'consult-grep)
"sf" (if (executable-find "fd") #'consult-fd #'consult-find)
"sM" #'consult-man
"st" #'consult-locate
"sh" #'consult-history
"sa" #'consult-org-agenda
"sl" #'consult-locate
;; project
"pl" #'consult-line-multi
"pi" #'consult-imenu-multi
Expand Down

0 comments on commit 1fb5994

Please sign in to comment.