Skip to content

Commit

Permalink
feat(completion): add consult-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 10, 2023
1 parent bf54bcd commit 877e677
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 11 additions & 2 deletions core/me-completion.el
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ This depends on `+cape-hosts' and `+cape-global-capes'."
;; code
"cm" #'consult-flymake
"cE" #'consult-compile-error
;; unclassified
"xc" #'consult-complex-command
;; extras
"ec" #'consult-complex-command
;; insert
"iy" #'consult-yank-from-kill-ring
"ip" #'consult-yank-pop
Expand All @@ -211,6 +211,15 @@ This depends on `+cape-hosts' and `+cape-global-capes'."
consult-man :initial (+region-or-thing-at-point)
consult-ripgrep :initial (+region-or-thing-at-point)))

(use-package consult-dir
:straight t
:bind (("C-x C-d" . consult-dir)
:map vertico-map
("C-x C-d" . consult-dir)
("C-x C-j" . consult-dir-jump-file))
:init
(+map! "ed" #'consult-dir))

(use-package embark
:straight t
:bind ("<remap> <describe-bindings>" . embark-bindings)
Expand Down
3 changes: 3 additions & 0 deletions core/me-keybindings.el
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@
"hdf" #'describe-function
"hdp" #'describe-package

;; ====== Extras ======
"e" '(nil :wk "extras")

;; ====== Project ======
"p" '(nil :wk "project"))

Expand Down

0 comments on commit 877e677

Please sign in to comment.