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

Command/macro to go back to last line(s) visited in file ? #352

Open
grege2 opened this issue Feb 1, 2024 · 2 comments
Open

Command/macro to go back to last line(s) visited in file ? #352

grege2 opened this issue Feb 1, 2024 · 2 comments

Comments

@grege2
Copy link

grege2 commented Feb 1, 2024

Hi all, apologies if this is the wrong place to raise this, it's been a while since I did much on github.
Thanks again Evan for a great editor, I use it every day.
Something I find I could use a lot, is a facility to go back to where I last was in a file.
Example: editing some code, search for some term, find it, read what I need to know, and now i want to go back to where I was and continue editing. I could do this by splitting the window and using the second window just as a search sandpit, or having the same file open in a second tab and doing the same sandpit .. and often I do that .. but sometimes I haven't thought ahead and I'm in a single file and I just want to get back to where I was before a search.

Maybe there could be a "stack" of locations visited, and you could go back through the list. This would cater for a search where you search through a few places until you find the one you want.

It's possible this is already easily do-able, in which case I will have egg on face :=(

Thanks in advance for comments !
or .. ATdhvaannkcse .. ah the old ones are the best.

@eteran
Copy link
Owner

eteran commented Feb 5, 2024

If I understand it correctly, what you're looking for is the ability to navigate the history of cursor positions. This is a great idea and I'd love to implement it!

I'm just about to call a night, but there may be some small features that can basically get you there. I'll try to take a look at it tomorrow.

@grege2
Copy link
Author

grege2 commented Feb 5, 2024 via email

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