mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-31 14:43:40 -05:00
Selectrum: add embark action to open file in new workspace
This commit is contained in:
committed by
Itai Y. Efrat
parent
ebd72b715e
commit
540c523023
@@ -45,3 +45,9 @@ Use consult narrowing with another workspace number to open a buffer from that w
|
||||
;; create a new buffer with the name.
|
||||
(unless (cdr buffer)
|
||||
(funcall consult--buffer-display (car buffer)))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +selectrum-embark-open-in-new-workspace (x)
|
||||
"Open X (a file) in a new workspace."
|
||||
(+workspace/new)
|
||||
(find-file x))
|
||||
|
Reference in New Issue
Block a user