Re: [PATCH 5/5] add-patch: render hunks through the pager
- From
- Dragan Simic <dsimic@manjaro.org>
- Date
- May 23, 2024, 23:57 UTC
- Message-ID
- <928234dea3d6d7a5ed1e39e9897ef4cf@manjaro.org>
- In-Reply-To
- <xmqqjzjkozhv.fsf@gitster.g>
On 2024-05-24 01:54, Junio C Hamano wrote:
Show 24 quoted lines
> Dragan Simic <dsimic@manjaro.org> writes: > >> On 2024-05-24 01:04, Junio C Hamano wrote: >>> Dragan Simic <dsimic@manjaro.org> writes: >>> >>>>> And for usability, perhaps giving a specific command would change >>>>> the default program a bare 'P' invokes for the rest of the session >>>>> until another specific command overrides. Another usability hack >>>>> may be "[interactive] pipecommand = less -FX" configuration >>>>> variable >>>>> gives the initial default for each session. >>>> I think that would be way too complicated. >>> >>> It is modelled after how "less" and "vi" remembers the last pattern >>> fed to their "/" command. You once give, say, "/test_<ENTER>" to >>> find one instance of "test_", then "/<ENTER>" takes to the next >>> instance. >> >> Huh, less(1) actually remembers nothing when the secure mode is >> turned on. > > Are you sure you read me right? I wasn't talking about storing > anything on disk for the "usability hack", and made it explicitly > clear with "for the rest of the session".
I misread it at first, but I corrected myself. [1]
[1] https://lore.kernel.org/git/3391a15907a055c281106c4995fb8272@manjaro.org/