I have a (really) big project. I want to be able to find a file, open it and go to a specific line given the file name specified as “Foo.txt:24”, where “Foo.txt” is the name and “24” is the line.
Basically, the same thing that you can do when pressing Cmd+P.
How can I do that from a plugin? I tried looking at the window
API to obtain all open directories and then use os.walk
to traverse it. But my project is really big and Sublime’s Cmd+P does it so much faster than os
.