Open partrap opened 1 year ago
:heart:
Keyboard navigation with the cursor keys was quite tricky to get right. The selection state is kept track of in a global store, where it can be preserved when the gallery is updated with other images since the before and after states are known there. However, the focused item in the gallery is currently stored in a local state in the gallery, where that information is not known, so we opted to just reset that state when the gallery is updated
Over there, there would have to be a lookup of what the image at lastSelectionIndex
was, and update it to that image's index in the new list of images. That would require lifting that state into the global store too. That's not the most fun type of work, but I'll put it on the TODO list!
Praise: New here – Allusion is wonderful and just what I've been looking for.
Issue: After finding an item with search, sometimes I want to see the selected item in 'context' of the whole library. When sorting by Date Added this useful for finding items I know were added together.
What I expect:
I assume this is a bug because without searching the library the expected behaviour (window focus shifts to highlighted item) does happen.
Cheers!