Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Adding a Save All menu item under File #1208

Merged
merged 2 commits into from
Aug 2, 2012
Merged

Conversation

srinarasi
Copy link
Contributor

It's a very simple change to add an option to save all the unsaved files. I'm just calling saveAll() from my handler.

@@ -429,6 +429,14 @@ define(function (require, exports, module) {
}

/**
* Saves all the unsaved files.
* @param {?{doc: Document}} commandData Not used in this function.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the unused argument

@peterflynn
Copy link
Member

Also: would you be willing to submit a squashed pull request? We don't have any hard and fast rules on this yet, but 5 commits for a small diff like this feels a little high... so if it's not too much trouble, it'd be nice to squash it down to just 1.

@ghost ghost assigned peterflynn Jul 1, 2012
Updated getModeFromFileExtensions to let cfm and cfc files use the html editor. This will make any ColdFusion developers experience with brackets much much better.

Update master

Update About dialog sprint number

Update _shouldShowInTree to only hide specified hidden files.
Solution for adobe#1133

Replace $.isArray with Array.isArray

Adding comment for the handleFileSaveAll function

Edited the comment

Adding different shortcuts for Mac and Win
@srinarasi
Copy link
Contributor Author

I've squashed them all and have pushed it. I'm still learning git and am not sure if I've done everything right. If there's something wrong, please let me know.

@peterflynn
Copy link
Member

Sorry for the delayed response -- I should have mentioned that we were on break all last week. Just a couple more nits -- see comments in the diff.

@@ -429,6 +429,14 @@ define(function (require, exports, module) {
}

/**
* Saves all the unsaved files.
* @param None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to explicitly say this -- just leave off the @param line entirely.

@peterflynn
Copy link
Member

@srinarasi -- if you have a chance to address those last three nits, then we can merge this right away!

@srinarasi
Copy link
Contributor Author

Sorry about the delay. I'll try to fix them today.

@peterflynn
Copy link
Member

No worries -- whenever you have time

@peterflynn
Copy link
Member

@srinarasi: we decided to just merge this as-is, and I'll commit those last cleanups on our end (along with the shortcut change proposed by @RaymondLim). Thanks for contributing!

peterflynn added a commit that referenced this pull request Aug 2, 2012
Add a Save All command (implementation already exists, just exposing it in the UI now)
@peterflynn peterflynn merged commit f888bee into adobe:master Aug 2, 2012
peterflynn added a commit that referenced this pull request Aug 2, 2012
This is a follow-up to original pull request #1208, which has already been
merged. See comments there for discussion of these changes (particularly
the shortcut debate).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants