helix
helix copied to clipboard
Jumplist has Duplicate Entries
When using the Jumplist panel to navigate the jumplist, duplicate entries quickly emerge and are difficult to get rid of as there is no "delete selection from jumplist" command
To reproduce:
- Open a file and put the cursor someplace on the file.
- ctrl+s to add the character to the jumplist
- add another character
- and another
- now start using the jumplist rapidly. You will quickly notice multiple duplicate entries on the jumplist
This is the expected behavior: the jumplist is analagous to history in a browser and this case is like following a link from page A to page B and back to page A, and so on. The jumplist prevents sequential duplicate entries since they aren't useful but duplicates in overall history can be useful.
Hmm, I think I'm starting to understand its usecase then. I wonder then if it would be useful to have a list of unique jumplist items to scroll through separately like the buffer list? Frequently, my usecase for the jumplist picker is to scroll through the list of unique jumps I've made recently as a way to visually jump around my documents. This breaks quickly when the jumplist doesn't dedup completely
If the jumplist picker were deduplicated by default then it might be confusing because it would hide parts of the history. Maybe a key in the picker to deduplicate items could work but I don't know how useful that would be for pickers in general since other pickers are deduplicated by default