Sublime Forum

Newbie questions

#1

Hi, all, I am a new user of st2.

thanks for reading my questions:

(I’m using ST2 on OS X Mountain Lion.)

  1. Is there any way to view all currently available tab triggers? (as I can see in textmate’s toolbar menu of Bundles…) or is there any plan to add such a menu?

  2. I can see many textmate bundle files, in the ~/Library/Application Support Sublime Text 2/Packages/ directory, such as html/HTML.tmLanguage, or some file ending with .tmPreferences… but how can I make use of these files?

  3. In Textmate, when I edit html files, I can use supper + b to wrap text with , super + i to wrap with , how to do so (other keybinds are ok.) in ST2?

  4. When I edit a rails view template file (.html.eb), syntax scope chosen as HTML(Rails), “if + tab” gives me php code: <?php if (condition): ?><?php endif ?>, why?

thanks!

0 Likes

#2

Hi xiaolai,

I’m having the same issues. Although I love TM, I wanted to move to something that was under active development and I had confidence in so I purchased ST2 after trying it for a week. Unfortunately I was working on a PHP project at the time and didn’t realise the lack of support ST2 has for rails development out of the box (my bad).

The if+tab inserting a php block is a bug due to the scope of the php snippet which is covered in another post in this forum. I’ve spent several hours googling for help on ST2 + rails and have come to the conclusion that you have to either role your own or install a package from the community. Personally I dislike both of these options, as a freelance developer I tend to see my editor as a tool and dont want to spend time messing with it, and I’d prefer to have the company that developed the editor create the required plugins as I have more faith in the quality of their code etc.

I’m sure I’ll get hammered for my opinions as there are a lot of people who love ST2, I’m one of those people who are happy to pay for good software and ST2 is definitely worth the money it cost me, but I’m contemplating moving to RubyMine for rails development maybe worth you having a look too. :smile:

0 Likes

#3

For your third point have a look at github.com/ignacysokolowski/SublimeTagWrapper .

0 Likes