Conversation
|
Looking at the code makes me think the functionality is pretty similar to the navigate plugin that I wrote which also lets you jump back and forward.
By this you mean to keep a history of symbol jumps per file? The navigate plugin already keeps a back and forward global history of cursor positions but not a per file one.
Maybe by storing the current id of internal lite-xl undo/redo stack and comparing latest changes to the change when the goto declaration was triggered... Not sure how complicated this would be and if worth the effort.
By default the navigate plugin binds to Maybe the navigate plugin provides what you are trying to implement here, give it a try if haven't yet and let me know. |
|
It seems like I missed the navigate plugin, thanks for pointing me towards it 🙂 It's pretty close to what I want and definitely very convenient, although it does also push when I'm jumping around code by hand. That makes it sometimes a little fine-grained, whereas the LSP go-back is more coarse (only on an LSP goto). Perhaps making it possible to override |
That is true, if you would like to continue implementing this on the LSP here are my comments to some of your previous questions:
|
* add ty, a python type checker and language server * bump plugin version
This PR implements a function that allows going back to where the cursor was before going to a symbol. Personally I think this is quite convenient for going back and forth through a call-stack.
For now, I only have a very rudimentary implementation. Some things I'm looking for feedback/suggestions on are: