I’ve been using BBEdit for years, and have started to use Sublime over the past year, mostly because it’s available for (and the license is good for) both macOS and Linux.
One of the most common things I need to do is, from the command line, open an editor window with the files in the current directory open in a “tree view”. I’ve always done this using the command “bbedit .”. I’m looking for the equivalent with Sublime.
So far the closest I’ve come up with is “subl -n .”, but it requires me to hit “⌘K ⌘B” to make the tree view appear on the side. Is there a command line option to make it appear automatically?
Note that I don’t want it to always appear … if I open just one file from the command line I don’t want the tree view … only if I’m opening a directory from the command line.
(Side question: why “⌘K ⌘B” anyway? It wouldn’t be so bad if it were just a single keystroke, but a sequence of keystrokes?)