http://stackoverflow.com/questions/20594226/textmate-2-smart-typing-pairs-fe... http://stackoverflow.com/questions/22856490/textmate2-how-to-put-spaces-betw...
I've noticed that these 2 questions remain un-answered. I attempted to open the bundle editor for source, text, ruby, and scss and made changes to the various smartTypingPairs objects but was unable to create change in how TextMate operates. I tried the actual fixes for these peoples problems, deleting the pair in one, and modifying the ruby pairs, I even tried ['a':'b'], but typing a didn't append a b.
Are there known issues with smart typing pairs, or perhaps was I looking in the wrong location?
Thanks,
-- graham.p.heath@gmail.com
On 5 Apr 2014, at 3:51, graham.p.heath@gmail.com wrote:
[…] Are there known issues with smart typing pairs, or perhaps was I looking in the wrong location?
Not that I am aware of. What was your goal here?
One of the questions you link to wants ‘{’ to insert spaces. This is more of a job for snippets, e.g. create a snippet with content set to ‘{ $0 }’ and bind it to the ‘{’ key, possibly scope it to a given language and/or disable it for when there is a selection (by using a scope selector of ‘-dyn.selection’).
The other question you link to was about ‘:’ being paired with ‘;’. For CSS this is the PropertyName setting in Bundles → CSS → Settings. Currently it is scoped to ‘meta.property-list.css -meta.property-value’ which should limit where it fires.
The linked question though was mentioning SCSS, looking in that bundle, it there is a Smart Typing Pairs setting with the pair which is scoped to source.css. This appears to be wrong, and it should instead mimic the CSS bundle wrt. only enabling it in the context where it makes sense.