Someone replied to the digest, so just in case you miss it, here is my response regarding attaching this to scope attributes:
In the .tm_properties file:
[ *.tex ] scopeAttributes = 'attr.save-on-deactivate'
Then put attr.save-on-deactive in the scope for the 'Save on focus lost' command.
Be careful: scopeAttributes seem to only be attached to files when you open them, so if you change .tm_properties be sure to re-open the files. You can make sure that the scope attribute has been set by using the "Show Scope" command in bundle development or Ctrl-Shift-P, just to check that the attribute is being set properly.
On Wed, Feb 29, 2012 at 3:47 PM, Edwin Moss ed.moss@4ssom.com wrote:
Perfect!
That did the trick!
Thanks!
Ed.
On Feb 29, 2012, at 8:17 AM, David Howden wrote:
Hi Ed.
Try removing the scope selector and see if it works. I have input set to "Nothing", and output to "Discard".
I have added the command to the text bundle, so if you are still having problems I can just send you a copy of that.
David.
On Wed, Feb 29, 2012 at 3:12 PM, PowerPod ed.moss@4ssom.com wrote:
I created a "Command" in my personal bundle with:
Scope Selector: attr.save-on-deactive Key Equivalent: Tab Trigger: Semantic Class: callback.application.did-deactivate Content Match: Save: Modified Documents Input: Scope Format: Text Output: Replace Input Format: Text Caret Placement: After Output Scroll for new output (unchecked)
Still no joy. Yes, I am anxious to get this working. :) I really appreciate your help.
Thanks,
Ed.
David Howden wrote:
Hi
Ok, so as I understand it you you now need to have a command which has
the
scope set to attr.save-on-deactive, and is fired by the semantic class: callback.application.did-deactivate and is set to save all modified documents.
David.
On Tue, Feb 28, 2012 at 5:00 PM, Edwin Moss ed.moss@4ssom.com wrote:
I am having no joy in getting this to work in my .tm_properties file.
[ *.{rb,erb,haml,js,html} ] scopeAttributes = 'attr.save-on-deactivate'
Has anyone else got it to work? Any help would be appreciated.
Thanks,
Ed
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
-- View this message in context: http://old.nabble.com/scopeAttributes-and-deactivate-working--tp33408128p334... Sent from the textmate users mailing list archive at Nabble.com.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate