helix icon indicating copy to clipboard operation
helix copied to clipboard

Jumplist has Duplicate Entries

Open ngraham20 opened this issue 3 years ago • 3 comments

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:

  1. Open a file and put the cursor someplace on the file.
  2. ctrl+s to add the character to the jumplist
  3. add another character
  4. and another
  5. now start using the jumplist rapidly. You will quickly notice multiple duplicate entries on the jumplist

ngraham20 avatar Oct 27 '22 19:10 ngraham20

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.

the-mikedavis avatar Oct 27 '22 20:10 the-mikedavis

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

ngraham20 avatar Oct 27 '22 20:10 ngraham20

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

the-mikedavis avatar Oct 27 '22 23:10 the-mikedavis