helix icon indicating copy to clipboard operation
helix copied to clipboard

Clear jumplist

Open dariooddenino opened this issue 2 years ago • 5 comments

I think it could be useful to have both a clear all jumplist entries command and a key binding to delete entries from <space> j.

dariooddenino avatar Nov 15 '22 11:11 dariooddenino

I think it could be useful to have both a clear all jumplist entries command and a key binding to delete entries from <space> j.

Are we wanting this to be a nested menu? This would change the default keybind from <space> j to <space> j j for opening the jumplist. <space> j brings up menu j opens jumplist c clears jumplist

PickerAction is currently being implemented in this pr

We should be able to use that to implement keybindings in the picker menu: ctrl-x for delete

swork1 avatar Nov 16 '22 01:11 swork1

Once we support delete action on jumplist picker, we can select all them first to achieve cleaning jumplist.

Multiple selection for pickers is being implemented in #4837 .

QiBaobin avatar Nov 21 '22 13:11 QiBaobin

I made a typed command to clear the jumplist. Does this look like a good solution?

Bruce-Hopkins avatar Mar 10 '23 18:03 Bruce-Hopkins

@Bruce-Hopkins I think that maybe implementing removing just one item first would be more useful as a user does not want to clear their whole jumplist just to remove a few items although I suppose that it is better then nothing

godalming123 avatar Apr 13 '23 08:04 godalming123

This for me is sorely needed. I'm really confused on what basis the lines are added to jumplist picker, when I'm not really using ctrl+s keybinding. I suppose there are an editor and a user jumplists, which are mixed together.

Without a proper control what is being add to jumplist picker, I would definitely welcome a shortcut to clear the jumplist, to at least partially alleviate the issue. I would just clear selected redundant lines. Clear the whole jumplist would be also welcome, but limited in use for me.

It would be nice if jumplist picker could be bounded to it's buffer via config for example. It would mean less filtering by name in picker window. I wouldn't change the default behaviour though, as lot of people might still love to jump over different buffers.

ondrej-ivanko avatar Mar 30 '24 22:03 ondrej-ivanko