[TxMt] Code Navigation

Jacob Carlborg doob at me.com
Thu Feb 1 21:58:23 UTC 2018


I’m been starting to use go-to-definition commands more and more in TextMate. One thing that would be really nice is if there was a way to navigate back to the location where I invoked go-to-definition. I quite often look up the source code of a symbol that I’m using with the help of go-to-definition and then need to get back to where I was coding. If go-to-definition opens a new file it’s pretty easy to get back to the previous location by just closing the newly opened file. But if the definition is in the same file it’s not that easy to get back. One idea would be set a mark when go-to-definition is invoked, then use Jump To Next/Previous Mark. The problem with that is that there might be different marks, like marks set by compiling the code. These marks will now interfere with go-to-definition marks. It’s also quite difficult to build up a stack, allowing to navigate backwards and forwards with these marks. Since navigating between marks will, I think, in the order they’re located in the document, not the order they were created or any other user defined order.

Ideally this would be a built in feature in TextMate, making it possible to navigate backwards and forwards regardless if the “mate” command, the Jump to Line or any other feature was used to navigate the code.

-- 
/Jacob Carlborg

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20180201/3630ab49/attachment.html>


More information about the textmate mailing list