-
Notifications
You must be signed in to change notification settings - Fork 119
Added temporary tabs #145
Added temporary tabs #145
Conversation
|
/cc @atom/feedback |
|
Sorry added an extra commit, forgot that Sublime Text keeps the file open if it has been modified. |
|
Multiple commits is totally fine. We never squash. |
lib/main.coffee
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is misleading considering that the tabs stay open once they're modified. Perhaps Tabs will only stay open if they are modified or double-clicked or Tabs with no changes are closed once they lose focus unless they are double-clicked.
|
Also, some specs would be nice for this 😄. |
I'm gonna be a little bit stricter; specs for this is mandatory. |
|
I don't really like the name Naming stuff is difficult. |
Also added check to see if the Tab is a TextEditor (This prevents accidental closing of tabs when opening panels)
|
Thanks for the help guys 😃 I've implemented your suggestions and renamed the setting to "useTransientBehaviour" - seems to make the most sense I also modified the code to prevent TextEditor tabs from being closed when any other panel is opened and focused I'll work on writing some specs next 👍 |
|
I'm not extremely familiar with writing specs, so forgive me if they're completely wrong 🙈 Any tips / help appreciated if I missed anything! |
|
use specs from sublime-tabs.. since this PR is based on that, you should be able to see which tests test which behavior and try accordingly |
Thanks to @ddavison for the original specs from sublime-tabs
|
Thanks 👍 I've updated the specs to use the specs from sublime-tabs and have also updated them to suit this fork. Also I removed the case for Images since my fork is only testing for TextEditors, I'm not sure what the preferred behaviour would be for images - for me it makes more sense that images open in non-transient tabs. |
|
👍 |
1 similar comment
|
👍 |
|
Nice work 👍 |
Introduces new setting that opens all tabs in a temp state, allowing them to be closed when focus is changed from item to item.
Origin: ddavison/sublime-tabs#43