Just found your "Edit"
EDIT:
Stefan>So in my simple understanding i would just save the file in tmp with correct ext ...but didn't show it as saved.
Or you mean, when this flag set, to always save file to tmp, when requested, and never ask for Save As.
And users need to call Save as explicitly for every new file?
I mean my suggestion (auto internal save new opened Untitled files to tmp)
would do exactly the same as HE act right now,
but save those new Untitled to tmp AND do not show it as saved.
>when this flag set, to always save file to tmp,
Yes, instead holding the new Untitled file in memory, save it as %tmp%\Untitled1.ext
>when requested,
who did this: "when requested, " ?
I don't understand this.
I mean: No one "requested" anything, HE make all this in the background for the user, as it right now.
> and never ask for Save As.
For new created file never ask to save... HE make this for the user.
>And users need to call Save as explicitly for every new file?
"for every new file" <---No, this is not what i mean.
I mean it would be exactly as it is right now:
* If the user close the new document AND if it is dirty (modified) the user is prompted if he wanna save.
*** If the user saved it, the file is moved from temp to new location.
* If not dirty, or the user doesn't want to save it, then just close and remove it from temp.
If i didn't find the right words we can do an chat tonight or some day in the evening, if you want.
One more try:
ON open an new doc or template
{
IF option "[ ]save to tmp" is set THEN
this file is created in tmp as Untitled with real
extension (user is not prompted to save)
ELSE
this file is hold in memory only.
END IF
}
On closing the new document
{
IF the file is dirty (modified) THEN
the user is prompted if he wanna save.
IF the user save it THEN
the file is moved from temp to new location.
ELSE
//the user doesn't want to save it (cancel)
just close and remove it from temp.
END IF
ELSE IF not dirty THEN
just close and remove it from temp.
END IF
}
I hope i didn't make an mistake in this psuedo code... but i have to go!