[TxMt] Re: Code Navigation
matt at tidbits.com
Fri Feb 2 00:37:18 UTC 2018
This reminds me of my suggestion from September of 2014, which I'll just repeat:
> As you know, I use TextMate to write books. Big books with big chapters. So it often happens that I edit a chapter, then jump to an earlier / later bit of that same chapter to make some change entailed by what I was just writing. Now I want to "go back" to where I was before.
> That's the suggestion. TextMate should _automatically_ maintain "bookmarks" for the location of the two most recent edit locations (places where I actually typed or deleted text). Thus, I could use the bookmarks feature to jump back to where I was before.
The "bookmarks" idea was really just a stopgap. What I really want is what you want: there should be an easy way to "go back". m.
> On Feb 1, 2018, at 1:58 PM, Jacob Carlborg <doob at me.com> wrote:
> 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
> textmate mailing list
> textmate at lists.macromates.com
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 11! http://shop.oreilly.com/product/0636920107408.do
iOS 11 Fundamentals! http://shop.oreilly.com/product/0636920107415.do
More information about the textmate