[TxMt] suggestion

Yvon Thoraval yvon.thoraval at gmail.com
Thu Dec 5 06:05:03 UTC 2013


suppose i want to report a variable state in NodeJS and/or JavaScript, for
example:

console.log("myvar['"+property+"'] = "+myvar[property]);

because I'm a lazy guy, i want only to enter "myvar[property]", apart from
console.log.

at start, i would enter :

console.log(myvar[property]);

then copy/paste "myvar[property]" :

console.log(myvar[property]myvar[property]);

adding " = +":

console.log(myvar[property] = myvar[property]);

then surrounding "myvar[property] = " by '"':

console.log("myvar[property] = "+myvar[property]);

i want to see the property value in the "left" hand side, then i sourround
"property" by '"':

console.log("myvar["property"] = "+myvar[property]);

here is my suggestion, could it be possible by selecting "property" to add
two "+" signs on each side of "property" in order to make it :

console.log("myvar["+property+"] = "+myvar[property]);

could that last step be implemanted in TextMate ?


-- 
Yvon at 48.871651804,2.384858688
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20131205/fe5d1783/attachment.html>


More information about the textmate mailing list