Skip to content

Conversation

@spatializes
Copy link
Contributor

What's this PR do?

Changes logic for new files and saving files. New files are now created as blank pages and named with untitled# (with # being the next number after the highest numbered untitled file in your working directory).

Unsaved files will Save As, prompting a Save As overlay with Untitled# showing in the filename field.
Saved files will simply save to their current name.

Ctrl-S and the save button should work for both of these circumstances.

Where should the reviewer start?

npm install (to get Frylord updates)
npm run build

How should this be manually tested?

Open ChromeIDE, create a new file (with the New File button and with Ctrl-N). Write some text into the file. You shouldn't see any errors in the Dev Tools console. Save (using the Save button or Ctrl-S), should open the Save As overlay. Untitled# (#, based on file directory) should show in the filename input. Save the untitled file. Create and save a few more untitled files. Be sure the numbers are incrementing properly. Click the Save button or press Ctrl-S on a file that is already saved. It should simply save without prompting the Save As dialog.

Create a new file. Try to click away to a different file in your directory. ChromeIDE should ask you to Save As.

Try different scenarios with opening new files, saving, and navigating to be certain everything is working as expected.

What are the relevant tickets?

Closes #107

Copy link
Contributor

Choose a reason for hiding this comment

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

leftover console.log

@PropGit
Copy link
Contributor

PropGit commented Jun 18, 2015

Excellent descriptions @DrQuinn, thank you! Looking forward to trying out these features.

Copy link
Contributor

Choose a reason for hiding this comment

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

should be defined above the relative requires

@phated phated assigned 2fast2fourier and unassigned phated Jun 18, 2015
@phated
Copy link
Contributor

phated commented Jun 18, 2015

reassigned to @2fast2fourier to review since I made changes

2fast2fourier added a commit that referenced this pull request Jun 18, 2015
@2fast2fourier 2fast2fourier merged commit f7bb39c into master Jun 18, 2015
@2fast2fourier 2fast2fourier deleted the fileNewBehavior branch June 18, 2015 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants