Please let me begin by admitting to my lack of experience with Sublime Text. It’s entirely possible that some of my questions will reveal an ignorance of some startlingly obvious information, and I appreciate your collective patience with me as I learn more about this wonderful editor. In this case, the topic of this post is a little vague because I have two related questions to ask.
-
I am still figuring out the best way to call a Windows executable (with arguments) from Sublime Text (It seems like a Build System is the place to do this) but I was wondering if it is possible to extract the current line and column number of the cursor to use as arguments for this external call. I found something called file_regex in the docs and on this forum that seems close to what I want but I’m not sure it works for what I want. In the Build System docs it says the variable $FILE will be expanded to the full path and file name. Is there a similar variable or technique to get the current line and column number of the cursor?
-
Is it possible to direct Sublime Text to open a file at a specific line number? Opening to a specific column as well would be useful but nowhere near as essential to my purposes. There are some other editors that allow this via command line arguments (even in Windows).
The far inferior editor TextPad has these features and my company has developed some very useful tools that use them. I would like to be able to modify these tools to work with SublimeText if possible. Unfortunately, our Version Control system is very quirky and I am fairly certain I would not be able to use any of the Go To features of SublimeText to find and open the files I need.
Thank you for your help! I hope to get up to speed soon and start contributing some useful things to this fine community.
(I am using Build 2181 on Windows 7)