Closed SethFalco closed 1 year ago
I made a change since opening this PR.
I added SearchHistory#move_to_end
so we can move a search history entry to the end without doing the two-step process of getting the previous sort_by
before calling #record
.
Please let me know if you have any qualms with this!
This does a minor UX improvement:
Note
SearchHistory
to useOrderedDict
for persistence, and override__setitem__
to cast any values to anOrderedDict
heeding your advice in script.module.iapc/issues/3.type
tosearch_type
to avoid shadowing the built-intype
function. I was using this while trying to figure out why#move_to_end
wasn't working, but the shadowing was getting in the way.Related