[PATCH RFC] crecord: make an option for space key to move cursor down (issue5159) (RFC)

Sean Farley sean at farley.io
Wed Jan 11 13:36:11 EST 2017


Pierre-Yves David <pierre-yves.david at ens-lyon.org> writes:

> On 01/08/2017 03:19 AM, Anton Shestakov wrote:
>> # HG changeset patch
>> # User Anton Shestakov <av6 at dwimlabs.net>
>> # Date 1483841309 -28800
>> #      Sun Jan 08 10:08:29 2017 +0800
>> # Node ID 1afa1ffe6984bfe0027336ce0c83486e82ba2b50
>> # Parent  cfd14b0508ddf8edf156d202e2c5d07b259c2f46
>> crecord: make an option for space key to move cursor down (issue5159) (RFC)
>>
>> I really want to have an option of toggling a selection on a line and also
>> moving cursor down as a single keystroke. It also kinda makes sense for space
>> key to do this, because some other curses UIs in the wild do this (e.g. various
>> file managers, htop). So I got an idea to make a config option that defaults to
>> False for compatibility, but allows making crecord UI a lot more useful for
>> people with big hunks.
>>
>> What do you people think? And in what section should I put the config?
>
> What about using a modifier key for that ? eg: shift space select and 
> move forward.

I think I've been tripped up enough about the current behavior that I'd
be in favor for making this the default and having shift+space (is there
a curses' best practice here?) as the "select but don't move". Not too
big a deal, though, so +0.


More information about the Mercurial-devel mailing list