adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.27k stars 7.64k forks source link

Closing the only window quits Brackets #2848

Open appsforartists opened 11 years ago

appsforartists commented 11 years ago

When I first open Brackets, my natural inclination is to close the Getting Started window, then open a new project to work on. Brackets quits itself if no windows are open. As a long-time Mac user, this feels alien to me.

pthiess commented 11 years ago

@appsforartists I cannot reproduce this, I can close all documents in my project without closing Brackets (please test this with the Sprint 20 build coming out at the end of this week. In case you can reproduce please list exact steps.

Thanks a ton! Peter

appsforartists commented 11 years ago

If I hit Cmd-W in Sprint 20, nothing happens (presumably because there's now a distinction between closing a window and closing a tab). If I click the red close dot, the app quits. For comparison, TextMate, Chrome (and most other Mac apps over the last 30 years) stay open even with all their windows closed and let me open a new window.

This is what I naturally think the first time I open Brackets:

It's very counter intuitive that a new project opens in the existing window. That should be for my old project.


I just realized that you can only have one project open at a time in Brackets. That's really dumb. What if I want to look at the source to a library in /Library/Python/2.7/site-packages while also looking at my source code in the relevant project? What if I want a scratch editor to work in temporarily (without cluttering up my hard disk with a file I don't need saved)?

I use empty windows in TextMate all the time to write some code I'm going to paste into a REPL, e-mail, or web app and never want saved locally. They're also useful to split a long URL into separate lines to make it easier to decipher. I shouldn't have to save a file to type in a window, and I definitely shouldn't have to abandon (or save) my changes in one project to read the source of another one.

I hope this doesn't come across as to harsh, but this design decision is cripples the likelihood that I'd switch to Brackets fulltime.

redmunds commented 11 years ago

I just realized that you can only have one project open at a time in Brackets

It's an experimental feature (which is why it's in the Debug menu), but you can use Debug > New Brackets Window to open a second window which can switch to a different project.

njx commented 11 years ago

Hi @appsforartists -- you might not be aware that Brackets is still early in its development, and a number of things you mention aren't design decisions, but rather things that we haven't gotten to yet. For example, the ability to create a new blank file without saving it is on our backlog here: https://trello.com/c/WUdhIRlh. I know I want this all the time too :)

As @redmunds mentioned, you can also open a second window and choose a separate project in there (though this isn't an "official" feature yet). Aside from the lack of a "new blank file" feature that you mentioned, would it be important to you to be able to open multiple folders in the same sidebar? If so, what would your expectations be as far as things like "Find in Files"--would you expect it to search all of the open folders?

Thanks for the feedback--we're constantly reprioritizing our work based on this kind of input.

appsforartists commented 11 years ago

I'd like to see Cmd+N bound to New Tab and Cmd+Shift+N bound to New Window (both containing a blank document). I should then be able to save it and have it appear in the right place in the sidebar, if I save it into my project folder. I should also be able to right-click/ctrl-click the project sidebar to create a new file (touch, rename, open in current window).

Open should always create a new window, and I should be able to open a file or a folder with Cmd-O. (#2797)

My gut says it would be silly to have multiple folders open in the same window, but I'm open to persuasion if there's a compelling feature it enables.

albertxing commented 11 years ago

Open should always create a new window, and I should be able to open a file or a folder with Cmd-O.

I've always been used to opening files in the same window, but folders/projects in a new one.

peterflynn commented 10 years ago

Bumping up from 'no priority' since mismatching how most Mac native apps behave does seem like something we'd like to fix eventually (just not a major issue).

Also removing 'tracking' tag since there's no external bug this is waiting on.

ghost commented 9 years ago

+1 on the non-Mac behavior of quitting the app when you close the window

+1 on being able to have multiple projects open at once. Prior to visiting this issue, I did not know about Debug > New Brackets Window. Only having one project open at once is my top complaint about Brackets.

peterflynn commented 9 years ago

@jeremiahlee Note that the Debug menu item is not an official feature, and has serious bugs (you may lose preferences changes, you may lose work if you try to edit the same file in both windows, on Windows keyboard shortcuts won't work in the 2nd window, etc.). For an official feature that's safe to use, please upvote Multiple separate windows (official "New Window" command) on our feature backlog.