helix
helix copied to clipboard
Clear jumplist
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
.
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
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 .
I made a typed command to clear the jumplist. Does this look like a good solution?
@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
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.