textmate / r.tmbundle

TextMate support for R
25 stars 9 forks source link

Matching paris are not closed automatically #9

Closed snauhaus closed 8 years ago

snauhaus commented 8 years ago

I've noticed that when using the R bundle, matching pairs of (, {, [, etc, are not closed automatically, even though the disableTypingPairs is set to FALSE on my machine.

Is it locally deactivated by the bundle, or is this unexpected behavior that is just happening on my setup?

snauhaus commented 8 years ago

As far as I can tell, there is no settings item for matching pairs. I created one quickly, which fixes it at least temporarily.

infininight commented 8 years ago

R documents should pickup the default setting from the Source bundle so a R specific settings wasn't needed. Make sure you have not disabled the following bundles:

Source, Text, TextMate, SCM, Bundle Support

They provide some basic defaults and should not be disabled.

snauhaus commented 8 years ago

I actually have all these bundles enabled, but parenthesis completion still didn't work unless a setting was supplied. Markdown, ruby, and other bundles I use do in fact provide an explicit setting for parenthesis matching. Am I missing something?

infininight commented 8 years ago

You can see where settings are loading from with:

Open an R document, ⌃⌘T (Control-command-T), click settings, type smarttypingpairs

This will show you the active smarttypingpairs setting items with overridden ones crossed out. You should see one from Text overridden and one Source one active.

snauhaus commented 8 years ago

Thanks for the steps. It's strange, there is nothing there. I guess this really is a local issue. Do you know how best to try and fix this?

snauhaus commented 8 years ago

Ok I found the problem. I had installed the bundles but they weren't activated. I wasn't aware until now that those were two different things. Sorry for the misunderstanding. And thanks for your help of course!