Returning after a jump

With LSP, “Jump to Definition” and friends work as hoped. I need a way to get back to where I started, though. Typical use case:

  • I see an unfamiliar symbol.
  • I jump to the symbol to get a closer look at it.
  • Satisfied, I want to go back to where I was originally.

The best I’ve found is closing the newly opened file, if Jump to … had to open it to get there. If I’ve jumped to a different location in the same file, I end up having to manually navigate back.

Is there something I’m missing? If not, can this become a feature request?

2 Likes