Just finished a text filter (in Lua) that cleans up source files for me 
(mostly comment formatting). Works great :)

However, if the filter does nothing (that is, the output text is the same 
as the input text), BBEdit always marks the document as dirty, even though 
nothing has changed. While this is ok, it would be nice to avoid this (as 
it also indicates to the user if the filter did anything or not).

Can this be done? I can make the filter itself smart and detect if it makes 
any changes (I can even buffer up the entire input until I'm sure), but I 
don't see a way of telling BBEdit that the filter did not make any changes 
to the input. I'm assuming if I return nothing then BBEdit will just delete 
everything (oops!).

TIA,
--Tim

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].

Reply via email to