Home Download Buy Blog Forum Support

Save *all* open files including multiple windows

Save *all* open files including multiple windows

Postby Wolfy on Wed Jul 17, 2013 2:22 pm

Is there a way to save all open files - not just in the current window, but all windows? The current File, Save All option only appears to work in the currently open window. Thanks.
Wolfy
 
Posts: 2
Joined: Thu Jun 20, 2013 4:28 am

Re: Save *all* open files including multiple windows

Postby adzenith on Thu Jul 18, 2013 6:40 pm

You could write a plugin... something like:
Code: Select all
for window in sublime.windows():
  window.run_command("save_all")
adzenith
 
Posts: 1217
Joined: Mon Oct 19, 2009 9:12 pm

Re: Save *all* open files including multiple windows

Postby Wolfy on Fri Jul 19, 2013 6:12 am

That was easy. Thanks.
Wolfy
 
Posts: 2
Joined: Thu Jun 20, 2013 4:28 am


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 23 guests