[TxMt] Re: Error Saving Bundle Item

Allan Odgaard mailinglist at textmate.org
Thu Aug 22 08:58:07 UTC 2013


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.


More information about the textmate mailing list