Re: [textadept] File after save

From: mitchell <c....at.caladbolg.net>
Date: Tue, 30 Nov 2010 09:50:52 -0500 (Eastern Standard Time)

Robert,

> would it be possible do include a "File after save event"?

Yeah it would. I'll add this later today in time for 3.5.

mitchell

> In file_io.lua:
>
> -- * **file\_after\_save** (filename) <br />
> -- Called right after a file is saved to disk.
> -- - filename: the filename encoded in UTF-8.
>
> At the end of core.save
> events.emit('file_after_save', buffer.filename)
>
> I have a working prototype for syntax checking of Python files based
> on the (very useful) code that was added to the Lua module.
> Further, I'm experimenting with stripping whitespace and returning to
> the position the caret was on after saving for which this would be
> useful. Might be useful for saving backup files as well.
>
> Robert
>
> --
> You received this message because you are subscribed to the Google Groups "textadept" group.
> To post to this group, send email to textadept.at.googlegroups.com.
> To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/textadept?hl=en.
>
>

mitchell
Received on Tue 30 Nov 2010 - 09:50:52 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:54:26 EST