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

From:
Tracey Emery <tracey@traceyemery.net>
Subject:
Re: tog log search vs selected commit
To:
Christian Weisgerber <naddy@mips.inka.de>
Cc:
gameoftrees@openbsd.org
Date:
Thu, 9 Dec 2021 07:35:06 -0700

Download raw body.

Thread
On Thu, Dec 09, 2021 at 02:31:42PM +0100, Christian Weisgerber wrote:
> Stefan Sperling:
> 
> > At present tog always begins searching from the youngest commit.
> > 
> > With the patch below we always start searching from the currently
> > selected commit. Is this better? Does this break things for anyone?
> 
> I'm all for it.

Same! I've wanted the functionality for some time, but never looked at
it. I constantly use the 'n' 'N' search functions in nvim/tmux/etc.

> 
> vi(1), less(1), and the like all start searching from the current
> position, so the new behavior is more "intuitive", in the way that
> it works like other tools.  I'd like to see this extended to searches
> in the other views as well.
> 
> > By the way, I sometimes find myself trying to start a backwards-search
> > with the '?' key but this is not implemented.
> > Should we add this feature?
> 
> Personally, I tend not to use '?' since the inversion of 'n'/'N'
> confuses my muscle memory, but I can see its objective usefulness.
> 
> -- 
> Christian "naddy" Weisgerber                          naddy@mips.inka.de

-- 

Tracey Emery