You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#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:
Run git log through delta, search for specific commits with /^author: adam.
Don't find intended commits, quit.
Switch to the right branch.
Run git log agani, type / then up-arrow to find past search - but it's not there.
Have to type out /^author: adam accurately again.
I propose the implementation changes in one of two ways:
Edit the user's default history file in-place to add the navigate search regex (or move to bottom). I didnāt spot the reason this option wasnāt taken previously. Editing the less history file just a bit doesnāt seem as bad as duplicating it.
Duplicate the userās less history file to ~/.local/share/delta/lesshstonly 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.
The text was updated successfully, but these errors were encountered:
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.
#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.
The text was updated successfully, but these errors were encountered: