SPC TAB N
binding (#5173)
* Introduce `SPC TAB N` binding * Add vanilla Emacs binding
This commit is contained in:
parent
36d186d1cd
commit
42ff369142
3 changed files with 8 additions and 0 deletions
|
@ -365,6 +365,7 @@
|
||||||
:desc "Display workspaces" "d" #'+workspace/display
|
:desc "Display workspaces" "d" #'+workspace/display
|
||||||
:desc "Rename workspace" "r" #'+workspace/rename
|
:desc "Rename workspace" "r" #'+workspace/rename
|
||||||
:desc "Create workspace" "c" #'+workspace/new
|
:desc "Create workspace" "c" #'+workspace/new
|
||||||
|
:desc "Create named workspace" "C" #'+workspace/new-named
|
||||||
:desc "Delete workspace" "k" #'+workspace/delete
|
:desc "Delete workspace" "k" #'+workspace/delete
|
||||||
:desc "Save workspace" "S" #'+workspace/save
|
:desc "Save workspace" "S" #'+workspace/save
|
||||||
:desc "Switch to other workspace" "o" #'+workspace/other
|
:desc "Switch to other workspace" "o" #'+workspace/other
|
||||||
|
|
|
@ -306,6 +306,7 @@
|
||||||
:desc "Switch workspace" "." #'+workspace/switch-to
|
:desc "Switch workspace" "." #'+workspace/switch-to
|
||||||
:desc "Switch to last workspace" "`" #'+workspace/other
|
:desc "Switch to last workspace" "`" #'+workspace/other
|
||||||
:desc "New workspace" "n" #'+workspace/new
|
:desc "New workspace" "n" #'+workspace/new
|
||||||
|
:desc "New named workspace" "N" #'+workspace/new-named
|
||||||
:desc "Load workspace from file" "l" #'+workspace/load
|
:desc "Load workspace from file" "l" #'+workspace/load
|
||||||
:desc "Save workspace to file" "s" #'+workspace/save
|
:desc "Save workspace to file" "s" #'+workspace/save
|
||||||
:desc "Delete session" "x" #'+workspace/kill-session
|
:desc "Delete session" "x" #'+workspace/kill-session
|
||||||
|
|
|
@ -306,6 +306,12 @@ workspace, otherwise the new workspace is blank."
|
||||||
(+workspace/display)))
|
(+workspace/display)))
|
||||||
((debug error) (+workspace-error (cadr e) t))))
|
((debug error) (+workspace-error (cadr e) t))))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun +workspace/new-named (name)
|
||||||
|
"Create a new workspace with a given NAME."
|
||||||
|
(interactive "sWorkspace Name: ")
|
||||||
|
(+workspace/new name))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +workspace/switch-to (index)
|
(defun +workspace/switch-to (index)
|
||||||
"Switch to a workspace at a given INDEX. A negative number will start from the
|
"Switch to a workspace at a given INDEX. A negative number will start from the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue