Home Download Buy Blog Forum Support

Simple Question: How do I save the current file?

Simple Question: How do I save the current file?

Postby gregor.hoch on Fri Nov 30, 2012 2:53 pm

Hi,
I have a simple question: How do I save the current file. I can get the file name like this 'self.view.file_name()' (in a TextCommand). But I didn't find anything in the API to save the current file.

Thanks!
gregor.hoch
 
Posts: 144
Joined: Sat Oct 01, 2011 7:54 pm

Re: Simple Question: How do I save the current file?

Postby agibsonsw on Fri Nov 30, 2012 4:41 pm

Code: Select all
self.view.run_command('save')


..or similar.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 5 guests