Skip to content
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

Reliably jump to last cursor location? #7473

Open
ivnsch opened this issue Feb 10, 2022 · 2 comments
Open

Reliably jump to last cursor location? #7473

ivnsch opened this issue Feb 10, 2022 · 2 comments

Comments

@ivnsch
Copy link

ivnsch commented Feb 10, 2022

I use ctrl+o to jump to the last cursor location (often in combination with ctrl+] to navigate). But sometimes ctrl+o will jump to some unexpected place. Is this a known issue? Haven't paid much attention yet to how exactly it fails - will add more information if I have any.

@ivnsch
Copy link
Author

ivnsch commented Feb 26, 2022

It seems that this happens only when mixing vim navigation with trackpad/mouse. I often use the integrated terminal to compile, and since it's not possible to use shortcuts to navigate there, I use the trackpad. And coming to the code from clicking links on the terminal, it's more natural to navigate further with CMD+click than click+ctrl+] (especially since clicking on the terminal error often doesn't lead to exactly what I want to navigate into).

Not sure whether there's a good solution for this - would it make sense to add non-vim navigation (CMD+click) to the vim history? So it's possible to navigate back using vim shortcuts? Otherwise I'll try to rely mainly on the errors view instead of the terminal, which should be easier to navigate with the keyboard Update: At least with Rust / rust-analyzer this view isn't always up to date (especially when the errors are in tests), so not an option.

@akakream
Copy link

I have the same problem very often. I think solving this problem would be a nice improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants