"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: [rfc] compound keymaps with prefixed count modifier like vi(1)
To:
Mark Jamsek <mark@jamsek.com>
Cc:
gameoftrees@openbsd.org
Date:
Wed, 22 Jun 2022 16:26:34 +0200

Download raw body.

Thread
On Thu, Jun 23, 2022 at 12:18:03AM +1000, Mark Jamsek wrote:
> On 22-06-22 02:51pm, Stefan Sperling wrote:
> > On Wed, Jun 22, 2022 at 10:42:02PM +1000, Mark Jamsek wrote:
> > > I'm happy to add an explicit abort key, or do you think documenting the
> > > timeout and how that cancels a preceding count modifier would suffice?
> > > If we add an abort key, what should we use if not backspace?
> > 
> > Yes, just documenting the timeout seems fine. I entirely missed that the
> > number prompt will time out when I did my initial quick review.
> > 
> > The timeout should probably be configurable via env vars, but we can
> > add this later.
> 
> ok, sounds good!
> 
> The updated diff adds the timeout to the man page and a couple minor fixes:
> left-behind typo and ensuring that we scroll all the way up with C-u in
> blame view if the count modifier is large enough

I am happy with this going patch in. But we should keep refining this for
improved usability. I think some visual clue that the number is being
parsed would be nice to have, as suggested in another message of this
discussion thread.

I just noticed another minor issue, which is when you type something
like 12345j in the log view, this has the same problem as typing G,
locking tog into a seemingly endless loop of loading more commits.
We might want to add a way to abort "loading..." of commits in the log
view somehow, because in deep repositories this can be very annoying
if triggered by accident.