stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spatial groups refactored as a module


From: Tim Cross
Subject: Re: Spatial groups refactored as a module
Date: Mon, 14 Mar 2022 07:56:39 +1100
User-agent: mu4e 1.7.9; emacs 28.0.91

Shostek <szos@posteo.net> writes:

> it may be cleaner to define *spatial-groups-[top|root]-map* variables and add
> the new top map to the default top maps when the module is loaded instead of
> defining keys directly in the *top-map* variable. Its how group types handle
> their group specific bindings and would give a canonical place to put bindings
> related to spatial groups. Default bindings could perhaps be placed in the
> *spatial-bindings-root-map*, such that they don't interfere with application
> bindings. Just a thought.
>

I was thinking along similar lines, but then I realised that with most
of the bindings, you want them to be directly on the *top-map* i.e. you
want to be able to move around with 1 key stroke.

I think the recent changes are probably on the right track i.e. have a
function which you can call to have the 'default' bindings if you want
them and document what you need to bind for those who need something
different.

In my case, I've used the super key and the vi 'hjkl' and 'HJKL' for the
most common movement keys and super + Up/Down/Left/Right for the rest. I
also use super instead of C-t as my *root-map* prefix. This greatly
minimises impact with other applications.

Tim



reply via email to

[Prev in Thread] Current Thread [Next in Thread]