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

Sean Farley sean at farley.io
Fri Jan 13 18:43:31 EST 2017


Anton Shestakov <av6 at dwimlabs.net> writes:

> On Tue, 10 Jan 2017 17:27:32 +0100
> Pierre-Yves David <pierre-yves.david at ens-lyon.org> wrote:
>
>> 
>> 
>> 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 don't know. I can't think of a key combination and/or modifier that
> would feel natural as a way to do "action" vs. "action+move". You know
> how in some IM clients Enter sends the message and Shift+Enter just
> inserts a newline? It's the closest I could think of and it's still
> pretty different (there it's "action" vs. "newline").
>
> The more I think about this, the more it feels to me that only
> select+move makes sense anyway, because I can always go back to the
> previous line and undo the previous decision. Compare this with the
> regular chunk selector ("text"), which doesn't have a way to go back on
> your decision, only restart the whole process. With curses UI it's
> possible, and so optimizing the process for speed makes sense.

Yeah, after reading your email, I definitely agree with you.


More information about the Mercurial-devel mailing list