No, I'm not bluffing. I really can't figure this out.
The setup:
I went to File -> Open
, and then selected a directory rather than a file. As expected, a directory tree opened on the left side of my document. Hooray! I can easily view the files' structure in my Rails project. So, I make a few changes in a file, and then I click on a different file in the directory tree.
My problem:
TextWrangler then asks me whether I want to save my changes. Huh? I say "No", and the new document doesn't open at all. Great. I try hitting Command+N (new document). A new window opens. Ughhhh. How the heck do I open documents in a new tab?
Note: I have set the "New & opened documents" behavior to "Open in the front window". This does not change the behavior described (i.e. when a directory is opened rather than a single file).
Best Answer
By selecting the directory you open a DIsk Browser (see window title).
When you create a new document, that document has no location on disk yet. But the Disk Browser window is associated with that folder. It wouldn't make sense to place it in a list of files of a certain directory as long as it's unsaved and has no location. In fact, it doesn't open in "in a new window", but in the window containing perhaps previously created unnamed documents.
Regarding editing, while this topic is a bit older and no longer accurate it highlights the limited capabilities of TextWrangler. While they implemented editing, it doesn't seem they implemented tabs/multiple opened modified documents for Disk Browser windows.
Get a real editor if you're working with it a lot, not the free companion to a commercial product. While I don't use BBEdit, I know that at least the multiple opened, modified documents are possible in TextMate.