I am new with Sublime Text, and I am currently using it mainly to edit files, mostly from the command line, in Windows 7 (64 bit). I prefer to use the mouse as little as possible. In particular, I would like to use Ctrl-P (“goto anything”) to open files, as the traditional “open” dialog on Windows, while it can be driven using the keyboard, is not particularly friendly. And I love the “smart search” approach of Ctrl-P.
My biggest issue is that Sublime Text seems to have an idea of “the default directory” which differs from my own. Specifically, if I open a file from the command line using “sbl filename” (I have a Powershell alias sbl pointing to the Sublime Text executable) it opens fine, but then when I want to open a nearby file, Ctrl-P doesn’t help. It offers me the currently open files, plus files from a folder that I opened yesterday, and which is still in the Ctrl-K Ctrl-B sidebar. I don’t seem to be able to get rid of that folder from my new session (I’ve shut down and restarted my PC since I used it!) and in any case, it’s not what I want - I want to be able to open files by name relative to the location of the currently selected file. Ctrl-O does this, but as I say, I prefer the Ctrl-P interface.
Is it possible to change the behaviour of Ctrl-P to work as I describe? Or at least something similar. Or is there a plugin I can use that gives me an open command with the same sort of “smart search” as Ctrl-P but from the current directory?
I suspect that using projects and/or opening folders so that they are in the sidebar would be ideal for working on a specific application/project. But for adhoc editing of random files (which is my main use at the moment) the current behaviour is very frustrating…
Any help or suggestions would be greatly appreciated.
Paul