reinstantiate item to prior position in list when item is returned from Last Recently Used
bnfinet opened this issue · comments
When an item is "resurrected" from "Last Recently Used" it would be nice if it remembered its prior order in the list.
@bnfinet I like the idea, but I'm unsure what "prior order" even means in this situation, because the list can change after an item is removed from the list (by moving, removing, or adding items).
It could be -
- the same position counted from the top
- before the same item as before
- after the same item as before
- a mixture of the possibilities above
What do you think about this?
I'm not sure either.
If I think of the use case for consistency, it's familiarity over time for
quick marking of done or resurrection from LRU or perhaps convenience while
shopping. Perhaps I put flour, cheese, milk in that order because it
mimics the shopping aisles and location of the items in the store. But
also it's being able to quickly locate bread from either the list (to mark
off) or LRU.
But regardless of the aisles in the store, the point that I want
convenience most is ressurect from a long LRU. m uncertain of what's best.
Maybe
LRU should just always be alpha numeric sorted.
Some of our lists are 15 items but most are 10 (though I think they're
gonna grow).
Perhaps each item's ordinal is to the combined set of LRU and current
items. When an item is moved or created, set it's ordinal in the combined
list to the item above +1 or to first if it's moved to the top of the
list. And adjust all other item ordinals accordingly.
That feels about right to me.
…On Wed, Apr 24, 2019, 5:17 AM Joe Reuter ***@***.***> wrote:
@bnfinet <https://github.com/bnfinet> I like the idea, but I'm unsure
what "prior order" even means in this situation, because the list can
change after an item is removed from the list (by moving, removing, or
adding items).
It could be -
- the same position counted from the top
- before the same item as before
- after the same item as before
- a mixture of the possibilities above
What do you think about this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#158 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJUV26HHHV2AXH3TWEZVXLPSBFXBANCNFSM4HFQCRAQ>
.