[TxMt] Re: Error Saving Bundle Item

Ken Snyder ken+textmate at ken.net
Thu Aug 22 11:16:37 UTC 2013


Ok well I've switched to the callback.document.did-save semantic class and
that seems to work. Still a bit odd that it works fine on my home computer
the other way but not on my laptop. Ahhh well, it doesn't really matter as
long as it works. Thanks for getting me to the finish line.

Ken


On 22 August 2013 09:58, Allan Odgaard <mailinglist at textmate.org> wrote:

> On 22 Aug 2013, at 9:04, Ken Snyder wrote:
>
>  […] Any idea how I can get ⌘S to do both not either-or?
>>
>
> What you probably want is to leave the key equivalent bland and instead
> give it a semantic class of callback.document.did-save or maybe
> callback.document.will-save (if you want it to run before saving).
>
> Be sure to also have the command’s ‘Save’ pop-up set to ‘Nothing’ (to
> avoid an infinite loop).
>
> Depends of course of your goal, but with the above, you can set the
> command’s output to be a tool tip, where you can then optionally show
> errors from validation.
>
>
> ______________________________**_________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/**listinfo/textmate<http://lists.macromates.com/listinfo/textmate>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20130822/90049c8f/attachment.html>


More information about the textmate mailing list