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

Bookmarks to quickly visit code segments and files #2789

Closed
marvindore opened this issue Jun 16, 2022 · 3 comments
Closed

Bookmarks to quickly visit code segments and files #2789

marvindore opened this issue Jun 16, 2022 · 3 comments
Labels
C-enhancement Category: Improvements

Comments

@marvindore
Copy link

The ability to create shortcuts between different parts of a code base you are actively working on, similar to the bookmarks feature of a Visual Studio, or Jetbrains IDE.

@marvindore marvindore added the C-enhancement Category: Improvements label Jun 16, 2022
@the-mikedavis
Copy link
Member

There's a similar feature implemented called the jumplist. You can save your selections to the jumplist with C-s, jump back with C-o and jump forward with C-i. Some operations like goto-definition automatically save to the jumplist. With a picker or tree for the jumplist #2664 you could effectively use it as a bookmark list. Does this cover the use-cases you're looking for?

@marvindore
Copy link
Author

Hi Mike!
I actually haven't seen the jump list in the docs, I will look it up. I think that should work for now so I will close this issue. Thank you so much!

@lukepighetti
Copy link

lukepighetti commented Oct 31, 2022

There's a similar feature implemented called the jumplist. You can save your selections to the jumplist with C-s, jump back with C-o and jump forward with C-i. Some operations like goto-definition automatically save to the jumplist. With a picker or tree for the jumplist #2664 you could effectively use it as a bookmark list. Does this cover the use-cases you're looking for?

I don't think this is working quite as expected for the bookmark use case, since you can easily lose items saved in the jumplist. In fact, I don't think there's any difference between gd C-s and gd.

Let's say you go

a.js -> b.js -> c.js -> d.js (save with C-s)
C-o, C-o, C-o, now you're back at a.js and your jumplist contains a.js, b.js, c.js, d.js

If you now jump to foo.js, your jumplist is a.js, foo.js

The file you 'saved' to the jumplist, d.js is gone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

3 participants