Open adamchainz opened 1 year ago
Hi @adamchainz, thanks, although #237 was a big advance (being able to leave navigate
activated and start using it without thinking), I've also been wanting to improve things so that my history is not lost.
Is this something you might be interested in working on? I haven't thought through the design options thoroughly, but I think one fixed premise I'd like to propose is that no non-delta less usage should ever see the automatically-generated delta regexps in less history.
I'm trying to remember the exact usage patterns that have bothered me. The one you describe certainly. I wonder whether I do in fact want delta less to share history with other less usage, much as if one had done git ... | delta | less
. I'll watch my own usage.
cc @cben @Kr1ss-XD
non-delta less usage should ever see the automatically-generated delta regexps in less history.
Why stick to this? It's only one regexp. I don't think it's that troublesome to insert it into the normal less history.
Is this something you might be interested in working on?
Reviewing yes, but writing no, I don't have much Rust experience or time to pick it up.
237 changed delta to duplicate lessâ history file before handing over. I find this surprising as it means one cannot recall searches from even previous delta invocations.
For example:
git log
through delta, search for specific commits with/^author: adam
.git log
agani, type/
then up-arrow to find past search - but it's not there./^author: adam
accurately again.I propose the implementation changes in one of two ways:
~/.local/share/delta/lesshst
only if there isnât a duplicate already. Otherwise, only edit the duplicate file, to append/move the navigate search string at/to the end.Either option would make delta lesses share history. The first would share with other lesses, which is âlessâ of a win imo.