]> Sergey Matveev's repositories - public-inbox.git/commit
lei q --save: clobber config file on repeats
authorEric Wong <e@80x24.org>
Fri, 16 Apr 2021 23:10:35 +0000 (16:10 -0700)
committerEric Wong <e@80x24.org>
Sat, 17 Apr 2021 10:00:45 +0000 (10:00 +0000)
commit74c0a24d49855321883f23decd687a1a866df24e
treed832b2e99a364b98f258f845c29aa60c33e1492d
parent1e51bc86dcdc25363575f6e9b35d954c65dec795
lei q --save: clobber config file on repeats

A user may wish to clobber/refine existing search parameters
by issuing "lei q --save" again.  Support that by overwriting
the lei.saved-search state file entirely.

We continue to preserve over.sqlite3 for deduplication purposes.

This way, we don't get something redundant like:

[lei]
q = term1
q = term2
q = term1
q = term2
q = term3

...whenever a user wants to refine their search.  Instead,
we'll just have:

[lei]
q = term1
q = term2
q = term3

On the second go.
lib/PublicInbox/Config.pm
lib/PublicInbox/LeiSavedSearch.pm
lib/PublicInbox/Reply.pm