Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase Jumplist points when using the search #2930

Closed
Philipp-M opened this issue Jul 1, 2022 · 4 comments
Closed

Increase Jumplist points when using the search #2930

Philipp-M opened this issue Jul 1, 2022 · 4 comments
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements

Comments

@Philipp-M
Copy link
Contributor

Related #1625 and #1718

I often find myself pressing n and N and want to go back again with C-o (probably after editing something).

But mostly I get lost then, because I land somewhere else (when search was initiated) I had a short discussion in #1718, but honestly I'm not super happy currently with the behavior of the search + jumplist.

Describe your feature request

I would propose that we push to the jumplist as soon as the user presses n or N after the user has moved (changed the selection) in between initiating the search or previously pressing n/N

@Philipp-M Philipp-M added the C-enhancement Category: Improvements label Jul 1, 2022
@kirawi kirawi added the A-helix-term Area: Helix term improvements label Jul 1, 2022
@the-mikedavis
Copy link
Member

I think you might be able to rebind n/N to ["save_selection", "search_next"] (and search_prev) as a workaround. Saving to the jumplist might add a lot of entries for every n/N - I think it would be ideal if it only saved to the jumplist on the last n/N, although that behavior could be too complicated or unpredictable 🤔

@rcorre
Copy link
Contributor

rcorre commented Feb 25, 2023

FWIW, I don't think adding an entry on every n/N is too much, and saving only on the last does feel like it would be confusign.

@Philipp-M
Copy link
Contributor Author

FWIW, I don't think adding an entry on every n/N is too much

The more I'm using the recommended rebinding, the more I agree with the others, that having a jumplist point at each n/N is a little bit too much, I often keep spamming C-o or C-i and get confused at that as well...
Maybe I come around and implement my initial proposal, and try it out if the behavior is less confusing.

It may also make sense to be able to configure the jumplist a little bit via the config to each liking (how often, or when a new point should be added or something like that).

I think it would be ideal if it only saved to the jumplist on the last n/N, although that behavior could be too complicated or unpredictable

Yes that's pretty much what my intention is with my initial proposal (you have to somehow check when the user has pressed the last n/N)

@the-mikedavis
Copy link
Member

I think there might be some overlap with this and #1596 (#1596 (comment)) - being able to undo selections might solve this use-case rather than tuning the jumplist points. I'm curious how search selections behave with Kakoue since Kakoune recently implemented selection undos.

@helix-editor helix-editor locked and limited conversation to collaborators Apr 7, 2024
@pascalkuthe pascalkuthe converted this issue into discussion #10237 Apr 7, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

4 participants