Skip to content

Commit caeb001

Browse files
committed
tweak(otpp): add initial input for consult commands
1 parent 9933fcc commit caeb001

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

local/straight/versions/default.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@
238238
("objdump-disassemble" . "54d060212e554ec1381a359629627c8de0bbb7ed")
239239
("oer-reveal" . "08c44d4fd212a7433ad2f863299b5c1bdd87e23f")
240240
("olivetti" . "800a286862fd7aff2a91726e84606386e295106c")
241-
("one-tab-per-project" . "18037dc492d7baada62ee73e1f3af4eb89d9aa8d")
241+
("one-tab-per-project" . "3d1d32cac5680bfc48834924a49e1decdabad551")
242242
("opencl-mode" . "10ae7742d57ae79d96cf52753800b3490589b3f6")
243243
("orderless" . "4040f67949eab1cfca5bb52dca816f8f65955853")
244244
("org" . "8c38d5b2f1bef096b64449c34f5e18405d46168e")

modules/me-workspaces.el

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,18 @@
1919
(use-package one-tab-per-project
2020
:straight (:host github :repo "abougouffa/one-tab-per-project")
2121
:after project
22+
:hook (otpp-after-define-commands . +one-tab-per-project--tweak-consult-cmds-h)
2223
:init
2324
(otpp-mode 1)
24-
(otpp-remap-commands-mode 1))
25+
(otpp-remap-commands-mode 1)
26+
:config
27+
(defun +one-tab-per-project--tweak-consult-cmds-h ()
28+
(with-eval-after-load 'consult
29+
(consult-customize
30+
otpp-consult-fd :initial (+region-or-thing-at-point)
31+
otpp-consult-find :initial (+region-or-thing-at-point)
32+
otpp-consult-grep :initial (+region-or-thing-at-point)
33+
otpp-consult-ripgrep :initial (+region-or-thing-at-point)))))
2534

2635
(use-package burly
2736
:straight t)

0 commit comments

Comments
 (0)