Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Enable for SCSS #85

Closed
paulirish opened this Issue Oct 31, 2012 · 18 comments

Comments

Projects
None yet
10 participants

I use emmet within my scss but i need to manually change my filetype back to CSS for it to work.

I use sublime-text-haml-sass for scss.

Could it also work in scss by default?

ecurtis commented Oct 31, 2012

Not sure if this would work for you but I am using Nathos's bundle and set the syntax to Sass

https://github.com/nathos/sass-textmate-bundle

Owner

sergeche commented Oct 31, 2012

It’s about expanding abbreviation by Tab key?

I’ve just installed https://github.com/n00ge/sublime-text-haml-sass and it works fine for me.

The reason why it may not work might be in current scope that is not matched to ones defined here: https://github.com/sergeche/emmet-sublime/blob/master/Default%20(OSX).sublime-keymap#L331.

Could you please press Ctrl+Shift+P in your SCSS file post here a scope name displayed in ST2 status bar?

yeah tab key..

Right now in SASS mode tab makes w10 go to %w10

doing ctrl-shift-p i get source.sass

On Wed, Oct 31, 2012 at 2:12 PM, Sergey Chikuyonok <notifications@github.com

wrote:

It’s about expanding abbreviation by Tab key?

I’ve just installed https://github.com/n00ge/sublime-text-haml-sass and
it works fine for me.

The reason why it may not work might be in current scope that is not
matched to ones defined here:
https://github.com/sergeche/emmet-sublime/blob/master/Default%20(OSX).sublime-keymap#L331
.

Could you please press Ctrl+Shift+P in your SCSS file post here a scope
name displayed in ST2 status bar?


Reply to this email directly or view it on GitHubhttps://github.com/sergeche/emmet-sublime/issues/85#issuecomment-9962292.

Owner

sergeche commented Oct 31, 2012

That’s weird: looks like it detected current syntax as HAML, not SASS.
I’ve just pushed updated syntax detector, let me know if it helps.

jwebcat commented Nov 1, 2012

I had a similar issue with the tab key in sublime text I use the other mapping ctrl + e

thx for the tip

On Wed, Oct 31, 2012 at 8:40 PM, Jupiter St John
notifications@github.comwrote:

I had a similar issue with the tab key in sublime text I use the other
mapping ctrl + e


Reply to this email directly or view it on GitHubhttps://github.com/sergeche/emmet-sublime/issues/85#issuecomment-9970112.

Owner

sergeche commented Nov 2, 2012

@paulirish does updated version solved this issue?

It seems 'select_next_item', 'select_previous_item', 'toggle_comment' do not work in SASS files.
I tried two SASS-related packages, n00ge's one and nathos' (both are mentioned earlier). If I switch syntax to CSS, the commands function, if back to SASS, they do not.
I have no problem with tab expansion though.

Owner

sergeche commented Nov 15, 2012

@certainlyakey these features are available for HTML and CSS syntaxes only. You may request SCSS/SASS/LESS support in the main repo: https://github.com/emmetio/emmet/issues

Owner

sergeche commented Nov 16, 2012

The most recent Emmet version might solve this issue, please check if it works for you.

Still not working, it seems.

Contributor

szarouski commented Nov 30, 2012

In my case it didn't work because package control didn't update emmet. Probably because I added repository url manually when emmet wasn't among official package manager repositories. So fix is easy - remove emmet, remove related to emmet repositories in \Data\Packages\User\Package Control.sublime-settings, install emmet from package manager again and have fun.

Owner

sergeche commented Feb 17, 2013

I guess it works now, closing.

@sergeche sergeche closed this Feb 17, 2013

uninstall and reinstall Emmet via Package manager didn't work for me. Anyone?

Owner

sergeche commented Apr 30, 2013

@zukilover you should provide more info in separate issue.


With sass-textmate-bundle :
nathos/sass-textmate-bundle#38

Hey,

I switched from https://sublime.wbond.net/packages/Syntax%20Highlighting%20for%20Sass
to https://sublime.wbond.net/packages/SCSS and everything works okay

Hope it helps someone

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment