fix(vertico): TAB bound to non-interactive function
This commit is contained in:
parent
e0234dcab1
commit
a6b6b6197b
2 changed files with 3 additions and 2 deletions
|
@ -47,7 +47,8 @@ Use consult narrowing with another workspace number to open a buffer from that w
|
||||||
(funcall consult--buffer-display (car buffer)))))
|
(funcall consult--buffer-display (car buffer)))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +vertico-embark-open-in-new-workspace (x)
|
(defun +vertico/embark-open-in-new-workspace (x)
|
||||||
"Open X (a file) in a new workspace."
|
"Open X (a file) in a new workspace."
|
||||||
|
(interactive)
|
||||||
(+workspace/new)
|
(+workspace/new)
|
||||||
(find-file x))
|
(find-file x))
|
||||||
|
|
|
@ -158,7 +158,7 @@ overrides `completion-styles' during company completion sessions.")
|
||||||
(setq embark-package-map (make-sparse-keymap))
|
(setq embark-package-map (make-sparse-keymap))
|
||||||
(map! (:map embark-file-map
|
(map! (:map embark-file-map
|
||||||
:desc "Open target with sudo" "s" #'doom/sudo-find-file
|
:desc "Open target with sudo" "s" #'doom/sudo-find-file
|
||||||
:desc "Open in new workspace" "TAB" #'+vertico-embark-open-in-new-workspace)
|
:desc "Open in new workspace" "TAB" #'+vertico/embark-open-in-new-workspace)
|
||||||
(:map embark-package-map
|
(:map embark-package-map
|
||||||
"h" #'doom/help-packages
|
"h" #'doom/help-packages
|
||||||
"b" #'doom/bump-package
|
"b" #'doom/bump-package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue