ratpoison-devel
[Top][All Lists]
Advanced

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

Re: [RP] patch: arrow keys for focus<direction> and resizing.


From: Bernhard R. Link
Subject: Re: [RP] patch: arrow keys for focus<direction> and resizing.
Date: Fri Mar 26 07:57:04 2004
User-agent: Mutt/1.3.28i

* twb <address@hidden> [040326 15:54]:
> How about having :resize look at the special keymap `resize' (as
> opposed to the default `root')?  Then it can be configured as normal
> (using :definekey).

The problem is that the actions taken here are bit special. While
hshrink,vshrink,hgrow and vgrow could easily be made available as
normal actions, aborting and ending resizing are a bit special. 
(As they need access to list of saved frames and must tell us we
 are finished). While this could be done with some global variables[1],
one would end up with functions only sensible within renice and a keymap
other actions are not sensible. Thus bind should disallow ideally to
put things in a keymap where they could not be used. But this would
almost be equivalent to write an own :bind function for this[2]. 

[1] or by funny return values
[2] if anyone has ideas how to cope with that situation, there is also
    the keymap of editing functions that is not configurable, either.
    (Though that one has no functions that can be useful in the normal
     keymap at all and I do not know why anyone would want to change it,
     making it a stateful editor is neighter needed nor possible by
     changing the keymap)

Hoping to hit the correct from-address this time,
        Bernhard R. Link




reply via email to

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