Repository navigation
Conversation
|
@izuzak actually created a package, the-closer, that covers this functionality and is configurable between the two requested versions of this functionality:
Personally, I prefer the current way ... which is that the window doesn't close unless I explicitly request it by pressing Shift+Cmd+W. If Atom Core is going to take on this functionality, I feel it should cover all three scenarios. |
|
It's hard to say without dredging up a bunch of usage data where to draw the line between core behavior and things that belong in packages. If this PR or something like it lands, the behavior can be disabled and @izuzak's package will still add additional options. I'm not necessarily wedded to the behavior in this PR but I think it's worth being cautious about how many settings we put in core (2 vs 3 in this case) before settings-view seriously levels up, to avoid having a sea of checkboxes. Does anyone have a good feeling from the forums or from other sources of feedback of how often the various kinds of close behavior are requested? |
|
I would set the default setting to false, becausw im always closing all tabs, but i want to keep my project open and im sure thats the behaviour that an ide should have. |
|
The major topic on the board about this is here: http://discuss.atom.io/t/closing-whole-editor-instance-on-cmd-w/2272 It appears to me that the majority favors the close after last tab behavior, but this kind of guessing of user preferences is sketchy sometimes. We also don't necessarily have to have settings for everything, perhaps just provide multiple commands: |
|
Agreed. Unless there is a very clear majority on one specific behavior, in which case putting it into core would be warranted, it should be realized as a number of options available for people to customize via their own keymaps or packages. It seems here there isn't that majority, so... I'm with @lee-dohm on this one. |
|
So what about |
|
@firedev No, there currently is no command for that. You might want to implement such a thing as a pull request for Atom Core or perhaps @izuzak's the-closer package. |
Interestingly, there is such a command, but it's scoped to the tab bar view: There's an issue atom/tabs#61 to make these commands available, so that might be a good approach? Maybe? 😄 |
|
Oh interesting. I searched using the Command Palette and didn't find anything. I guess the Command Palette only finds commands on the Thanks for correcting me @izuzak! |
dd8eda3 to
d1ecafc
Compare
|
Here's some more information to help us reach a decision here:
I agree with @thedaniel that we shouldn't be adding checkboxes for every option. 👍 However, we now also have the option of making this a dropdown choice, so we could have a single setting with the options "nope", "close after last tab is closed", "close together with the last tab". :lightbulb: I also wouldn't mind picking the more popular option (close after last tab is closed, not with it), and asking users to install a package if they want more options. Any other thoughts, everyone? Also, @thedaniel -- are you still interested in working on this? I noticed that this PR no longer merges cleanly, so it probably needs some cleanup or someone could open a new one if you have a full plate. |
|
I'm ok with this being a dropdown setting now that it's an option. |
|
@izuzak Happy to work on it, I just didn't push this because it seemed most of the work was in debating the various kinds of behavior, not the code :) |
|
Closing this out since it pretty outdated now and no longer merges cleanly, feel free to reopen when updated. |
fixes #863
Sets this behavior as the default.