Add C-0...C-9 bindings to layouts and workspaces
These key bindings does not exit the transient state
This commit is contained in:
parent
66ed054a15
commit
09edfe3e37
|
@ -9,6 +9,7 @@
|
|||
- [[Layer][Layer]]
|
||||
- [[Removing additional help][Removing additional help]]
|
||||
- [[Key bindings][Key bindings]]
|
||||
- [[Transient State][Transient State]]
|
||||
|
||||
* Description
|
||||
This layer adds [[https://i3wm.org/][i3wm]] like workspaces thanks to the [[https://github.com/wasamasa/eyebrowse][eyebrowse]] package.
|
||||
|
@ -48,24 +49,22 @@ Set the variable =eyebrowse-display-help= to =nil=
|
|||
|
||||
* Key bindings
|
||||
|
||||
| Key Binding | Description |
|
||||
|-------------------------------------------+--------------------------------------|
|
||||
| ~gt~ | go to next workspace |
|
||||
| ~gT~ | got to previous workspace |
|
||||
| ~SPC b W~ | go to workspace and window by buffer |
|
||||
| ~SPC l w 1~ | create or switch to workspace 1 |
|
||||
| ~SPC l w 2~ | create or switch to workspace 2 |
|
||||
| ~SPC l w 3~ | create or switch to workspace 3 |
|
||||
| ~SPC l w 4~ | create or switch to workspace 4 |
|
||||
| ~SPC l w 5~ | create or switch to workspace 5 |
|
||||
| ~SPC l w 6~ | create or switch to workspace 6 |
|
||||
| ~SPC l w 7~ | create or switch to workspace 7 |
|
||||
| ~SPC l w 8~ | create or switch to workspace 8 |
|
||||
| ~SPC l w 9~ | create or switch to workspace 9 |
|
||||
| ~SPC l w 0~ | create or switch to workspace 0 |
|
||||
| ~SPC l w TAB~ | switch to last active workspace |
|
||||
| ~SPC l w c~ | close current workspace |
|
||||
| ~SPC l w n~ or ~SPC l w l~ | switch to next workspace |
|
||||
| ~SPC l w N~ or ~SPC l w p~ or ~SPC l w h~ | switch to previous workspace |
|
||||
| ~SPC l w r~ | set a tag to the current workspace |
|
||||
| ~SPC l w w~ | switched to tagged workspace |
|
||||
| Key Binding | Description |
|
||||
|-------------+--------------------------------------|
|
||||
| ~gt~ | go to next workspace |
|
||||
| ~gT~ | got to previous workspace |
|
||||
| ~SPC b W~ | go to workspace and window by buffer |
|
||||
|
||||
*** Transient State
|
||||
|
||||
| Key Binding | Description |
|
||||
|-------------------+-------------------------------------------------------------|
|
||||
| ~SPC l w~ | activate the transient state |
|
||||
| ~[1..9, 0]~ | switch to nth workspace |
|
||||
| ~[C-1..C-9, C-0]~ | switch to nth workspace and keep the transient state active |
|
||||
| ~TAB~ | switch to last active workspace |
|
||||
| ~c~ | close current workspace |
|
||||
| ~n~ or ~l~ | switch to next workspace |
|
||||
| ~N~ or ~p~ or ~h~ | switch to previous workspace |
|
||||
| ~r~ | set a tag to the current workspace |
|
||||
| ~w~ | switched to tagged workspace |
|
||||
|
|
|
@ -93,6 +93,16 @@ workspace, preferably in the current window."
|
|||
("7" eyebrowse-switch-to-window-config-7 :exit t)
|
||||
("8" eyebrowse-switch-to-window-config-8 :exit t)
|
||||
("9" eyebrowse-switch-to-window-config-9 :exit t)
|
||||
("C-0" eyebrowse-switch-to-window-config-0)
|
||||
("C-1" eyebrowse-switch-to-window-config-1)
|
||||
("C-2" eyebrowse-switch-to-window-config-2)
|
||||
("C-3" eyebrowse-switch-to-window-config-3)
|
||||
("C-4" eyebrowse-switch-to-window-config-4)
|
||||
("C-5" eyebrowse-switch-to-window-config-5)
|
||||
("C-6" eyebrowse-switch-to-window-config-6)
|
||||
("C-7" eyebrowse-switch-to-window-config-7)
|
||||
("C-8" eyebrowse-switch-to-window-config-8)
|
||||
("C-9" eyebrowse-switch-to-window-config-9)
|
||||
("<tab>" eyebrowse-last-window-config)
|
||||
("C-i" eyebrowse-last-window-config)
|
||||
("c" eyebrowse-close-window-config)
|
||||
|
|
|
@ -35,32 +35,33 @@ existing =dotspacemacs-configuration-layers= list in this file.
|
|||
*** Layouts Transient State
|
||||
The layouts transient-state is initiated with ~SPC l~.
|
||||
|
||||
| Key Binding | Description |
|
||||
|-------------+------------------------------------------------------------|
|
||||
| ~?~ | toggle the documentation |
|
||||
| ~[1..9, 0]~ | switch to nth layout |
|
||||
| ~<tab>~ | switch to the latest layout |
|
||||
| ~a~ | add a buffer to the current layout |
|
||||
| ~A~ | add all the buffers from another layout in the current one |
|
||||
| ~b~ | select a buffer in the current layout |
|
||||
| ~d~ | delete the current layout and keep its buffers |
|
||||
| ~D~ | delete the other layouts and keep their buffers |
|
||||
| ~h~ | go to default layout |
|
||||
| ~C-h~ | previous layout in list |
|
||||
| ~l~ | select/create a layout with helm |
|
||||
| ~L~ | load layouts from file |
|
||||
| ~C-l~ | next layout in list |
|
||||
| ~n~ | next layout in list |
|
||||
| ~N~ | previous layout in list |
|
||||
| ~o~ | open a custom layout |
|
||||
| ~p~ | previous layout in list |
|
||||
| ~r~ | remove current buffer from layout |
|
||||
| ~R~ | rename current layout |
|
||||
| ~s~ | save layouts |
|
||||
| ~t~ | display a buffer without adding it to the current layout |
|
||||
| ~w~ | workspaces transient-state (needs eyebrowse layer enabled) |
|
||||
| ~x~ | kill current layout with its buffers |
|
||||
| ~X~ | kill other layouts with their buffers |
|
||||
| Key Binding | Description |
|
||||
|-------------------+------------------------------------------------------------|
|
||||
| ~?~ | toggle the documentation |
|
||||
| ~[1..9, 0]~ | switch to nth layout |
|
||||
| ~[C-1..C-9, C-0]~ | switch to nth layout and keep the transient state active |
|
||||
| ~<tab>~ | switch to the latest layout |
|
||||
| ~a~ | add a buffer to the current layout |
|
||||
| ~A~ | add all the buffers from another layout in the current one |
|
||||
| ~b~ | select a buffer in the current layout |
|
||||
| ~d~ | delete the current layout and keep its buffers |
|
||||
| ~D~ | delete the other layouts and keep their buffers |
|
||||
| ~h~ | go to default layout |
|
||||
| ~C-h~ | previous layout in list |
|
||||
| ~l~ | select/create a layout with helm |
|
||||
| ~L~ | load layouts from file |
|
||||
| ~C-l~ | next layout in list |
|
||||
| ~n~ | next layout in list |
|
||||
| ~N~ | previous layout in list |
|
||||
| ~o~ | open a custom layout |
|
||||
| ~p~ | previous layout in list |
|
||||
| ~r~ | remove current buffer from layout |
|
||||
| ~R~ | rename current layout |
|
||||
| ~s~ | save layouts |
|
||||
| ~t~ | display a buffer without adding it to the current layout |
|
||||
| ~w~ | workspaces transient-state (needs eyebrowse layer enabled) |
|
||||
| ~x~ | kill current layout with its buffers |
|
||||
| ~X~ | kill other layouts with their buffers |
|
||||
|
||||
*** Project Layouts
|
||||
To create a layout for a specific project use ~SPC p l~.
|
||||
|
|
|
@ -130,6 +130,16 @@
|
|||
("8" spacemacs/persp-switch-to-8 :exit t)
|
||||
("9" spacemacs/persp-switch-to-9 :exit t)
|
||||
("0" spacemacs/persp-switch-to-0 :exit t)
|
||||
("C-1" spacemacs/persp-switch-to-1)
|
||||
("C-2" spacemacs/persp-switch-to-2)
|
||||
("C-3" spacemacs/persp-switch-to-3)
|
||||
("C-4" spacemacs/persp-switch-to-4)
|
||||
("C-5" spacemacs/persp-switch-to-5)
|
||||
("C-6" spacemacs/persp-switch-to-6)
|
||||
("C-7" spacemacs/persp-switch-to-7)
|
||||
("C-8" spacemacs/persp-switch-to-8)
|
||||
("C-9" spacemacs/persp-switch-to-9)
|
||||
("C-0" spacemacs/persp-switch-to-0)
|
||||
("<tab>" spacemacs/jump-to-last-layout)
|
||||
("<return>" nil :exit t)
|
||||
("C-h" persp-prev)
|
||||
|
|
Loading…
Reference in a new issue