Closed dpen2000 closed 9 years ago
The title I think is.. incorrect. A new file is dirty by default as in it has not been saved. As for the step 3, assuming you clicked Yes?
As for 5/6, we don't track changes with that granularity so if its different from the last time its been saved, its dirty.
I was going off notepad.exe behaviour: a file isn't dirty when it's newly created with no changes (as in the title) and isn't dirty when it's been modified and modified back to original state. Sorry, was combining both scenarios into one ticket here.
We've been talking this one over for a while. We think we're going to keep this as-is for now (with the thinking that even empty new buffers are unsaved, and therefore are dirty), but future changes will make it largely moot.
Most file creation in the future will be done by creating a file with a name and type, which will get saved on creation with some scaffolded content/boilerplate. We're going to make this a smoother experience than the kinda clunky dialogs you get in a lot of IDEs, but it's a way we want to go in general, since when you're creating a file, you usually know what you're creating.
File shouldn't need saving unless it has changes