ERB-Sublime-Snippets icon indicating copy to clipboard operation
ERB-Sublime-Snippets copied to clipboard

Using 'er' and tabbing doesn't work.

Open farisalamin opened this issue 1 year ago • 5 comments

This has been bothering me for a long time now, I've only just looked at it and I've found that if I change the scope to 'text.html.ruby' instead of 'text.html.rails', it starts working again.

farisalamin avatar Sep 21 '22 19:09 farisalamin

I've got the same issue. You got it to work @farisalamin ?

For some reason all rails html.erb files have the scope text.html.rails instead of text.html.rails

michaelkoper avatar Nov 23 '22 13:11 michaelkoper

@michaelkoper Yeah, I changed the scope to 'text.html.ruby' in the sublime-snippet file for the er shortcut and it started working fine. Just in case, you just have to find 'Open Resource' in the command palette to get to the files.

Only problem now is that all the shortcuts stopped working after I recently updated sublime.

farisalamin avatar Nov 26 '22 22:11 farisalamin

Thanks for replying @farisalamin ! I did the exact same thing. Open Resource and changing all the scopes of the snippets I use. It isn't ideal if something updates but for now it does the job!

Thanks!

michaelkoper avatar Nov 29 '22 09:11 michaelkoper

Yeah, the original problem I had was that the er shortcut was the only one set to text.html.rails and was not working so I had to switch it to text.html.ruby. However since the recent sublime update, most of the shortcuts stopped working until I changed them back to text.html.rails.

farisalamin avatar Nov 29 '22 11:11 farisalamin

@farisalamin Do we have any idea why the scope changed with the update of sublime?

morgangrubb avatar Jan 16 '23 18:01 morgangrubb