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