Home Download Buy Blog Forum Support

Never save changes to a new file

Never save changes to a new file

Postby TimeSubline on Fri Sep 28, 2012 7:13 pm

I use a plugin that automatically saves changes on files that I've opened. But the default behaviour for closing any new files created (Ctrl+N) is to prompt for "Save Changes?" Is there a way to avoid that prompt because I almost always use new files as temporary workspaces and never have to save them. Thanks!
TimeSubline
 
Posts: 2
Joined: Fri Sep 28, 2012 7:08 pm

Re: Never save changes to a new file

Postby adzenith on Fri Sep 28, 2012 9:39 pm

If you delete all the text in an unsaved file, Sublime Text won't ask you to save.
(cmd+a, delete, cmd+w)
Other than that you could write a plugin to make your buffer a scratch buffer.
adzenith
 
Posts: 1215
Joined: Mon Oct 19, 2009 9:12 pm


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 21 guests