This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+window-management/eyebrowse
syl20bnr e2dbe1938c layouts and workspace: use new transient state keywords
Also cleanup the code and unify key bindings to make them consistent
between the two transient states.
2016-03-04 19:05:28 -05:00
..
img Use + instead of ! for layer categories 2015-09-11 00:13:51 -04:00
config.el Clean copyrights and update for year 2016 2016-01-11 21:42:17 -05:00
funcs.el Eyebrowse: goto buffer in workspace 2016-02-25 20:36:08 +01:00
packages.el layouts and workspace: use new transient state keywords 2016-03-04 19:05:28 -05:00
README.org layouts and workspace: use new transient state keywords 2016-03-04 19:05:28 -05:00

Eyebrowse layer

/TakeV/spacemacs/media/commit/01f9879d7f174d1d89cd417adc0fe3b6b24f3da8/layers/+window-management/eyebrowse/img/eyebrowse.gif /TakeV/spacemacs/media/commit/01f9879d7f174d1d89cd417adc0fe3b6b24f3da8/layers/+window-management/eyebrowse/img/i3wm.png

Description

This layer adds i3wm like workspaces thanks to the eyebrowse package.

Once the layer is activated a new number is added to the left side of the mode-line. This number corresponds to the currently active workspace number.

At startup, the workspace number 1 is active. Switching to a workspace will create it if it does not exist. For instance at startup you can press SPC l w 2 to create the workspace 2.

The key bindings are registered in a transient-state displayed in the minibuffer. The docstring of the transient-state displays the existing workspaces and the currently active workspace has square brackets. Since this is a transient-state it is possible to just preview a workspace, for instance press SPC l w 2 to see what's on the workspace 2 then press TAB to go back to the previously activated workspace.

It is also possible to give a label to a the current workspace by pressing r in the transient-state.

Install

Layer

To use this configuration layer, add it to your ~/.spacemacs. You will need to add eyebrowse to the existing dotspacemacs-configuration-layers list in this file.

Removing additional help

Once you know the key bindings to navigate between the workspaces you may want to disable the exhaustive help in the workspace transient-state. Set the variable eyebrowse-display-help to nil

  (setq-default dotspacemacs-configuration-layers
    '((eyebrowse :variables eyebrowse-display-help 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

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
d 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