Implement focus-follows-cursor

This commit is contained in:
Marten Ringwelski
2020-09-15 00:38:50 +02:00
committed by Isaac Freund
parent f597e7da63
commit 7e02fb679c
5 changed files with 83 additions and 0 deletions

View File

@ -116,6 +116,13 @@ that tag 1 through 9 are visible.
*enter-mode* _name_
Switch to given mode if it exits.
*focus-follows-cursor* _disabled_|_normal_|_strict_
When _disabled_ moving the cursor will not influence the focus. This is the default setting.
If set to _normal_ moving the cursor over a window will focus that window.
The focus still can be changed and moving the cursor within the (now unfocused) window will not change the focus to that window
but let the currently focused window in focus.
When set to _strict_ this is not the case. The focus will be updated on every cursor movement.
*map* _mode_ _modifiers_ _key_ _command_
_mode_ is either “normal” (the default mode) or a mode created with
*declare-mode*. _modifiers_ is a list of one or more of the following