-
Notifications
You must be signed in to change notification settings - Fork 10
File new behavior #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File new behavior #156
Conversation
f2a3608 to
bb106b5
Compare
plugins/editor/key-extension.js
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.
leftover console.log
|
Excellent descriptions @DrQuinn, thank you! Looking forward to trying out these features. |
src/stores/file.js
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.
should be defined above the relative requires
|
reassigned to @2fast2fourier to review since I made changes |
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