Home Download Buy Blog Forum Support

Goto-CSS-Declaration (ST2 and ST3) - UPDATE: v0.3

Re: Goto-CSS-Declaration

Postby rmaksim on Sat Jan 14, 2012 11:50 am

rooc wrote:yep, I also found this key mappings confusing because in windows they predefined for changing window behaviour

yep, unfortunately you're right (
in Windows 7
Win + Left - Dock the current Window to the left half of the screen
Win + Right – Dock the current Window to the right half of the screen

try to use super+. and super+, or other suitable combination of keys.

UPDATE: Default (Windows).sublime-keymap to this combination.
rmaksim
 
Posts: 59
Joined: Sat Jul 02, 2011 7:31 pm

Re: Goto-CSS-Declaration

Postby chodorowicz on Sat Jan 14, 2012 1:26 pm

It'd alse like very much support for SASS and LESS - I suppose it's nothing fancy, just adding .less and .scss files to the searching procedure. Or am I wrong?
chodorowicz
 
Posts: 18
Joined: Tue Oct 11, 2011 4:04 pm

Re: Goto-CSS-Declaration

Postby rmaksim on Sat Jan 14, 2012 1:58 pm

chodorowicz wrote:It'd alse like very much support for SASS and LESS - I suppose it's nothing fancy, just adding .less and .scss files to the searching procedure. Or am I wrong?

Support for SASS and LESS (and other from user settings) will be added soon.

Thanks for your feedback.
rmaksim
 
Posts: 59
Joined: Sat Jul 02, 2011 7:31 pm

Re: Goto-CSS-Declaration

Postby rmaksim on Sat Jan 14, 2012 3:43 pm

UPDATE: v0.2.0

+ Added: support for .SASS and .LESS (and .other from goto_css_declaration.sublime-settings)

Code: Select all
    {
        "css_files": [".css", ".sass", ".less"]
    }
rmaksim
 
Posts: 59
Joined: Sat Jul 02, 2011 7:31 pm

Re: Goto-CSS-Declaration

Postby rmaksim on Sat Jan 14, 2012 6:22 pm

UPDATE: v0.2.1

+ Fixed: TypeError in is_css() if empty view.file_name() as in "Find Results" window
rmaksim
 
Posts: 59
Joined: Sat Jul 02, 2011 7:31 pm

Re: Goto-CSS-Declaration

Postby StevenRas on Wed Mar 28, 2012 8:52 am

Hi guys,

I really really love this package when working with css.

Now my question is:

Do you think you can extend it to make it work with PHP functions?

I have 2 files opened in tabs. And I would like to jump to the function setCssAndJsFiles().

Here are my code examples:
File 1 (contains function calls)
Code: Select all
// DO IT: Call a function
EmsTools::setCssAndJsFiles();
EmsTools.setCssAndJsFiles();


Code: Select all
// Function definition
public static function setCssAndJsFiles() {
}
StevenRas
 
Posts: 11
Joined: Fri Mar 23, 2012 4:58 pm

Re: Goto-CSS-Declaration

Postby sheldno on Fri Mar 30, 2012 7:00 pm

Has anyone got this working with Rails? E.g. with html.erb and css.scss.erb files? I've been unsuccessful... :|
sheldno
 
Posts: 22
Joined: Thu Oct 06, 2011 4:09 pm

Re: Goto-CSS-Declaration

Postby rmaksim on Mon Apr 02, 2012 7:37 am

sheldno wrote:Has anyone got this working with Rails? E.g. with html.erb and css.scss.erb files? I've been unsuccessful... :|

Preferences -> Package Settings -> Goto-CSS-Declaration -> Settings-Default

try adding the extension ".scss" (or ".erb" ?) to the list
{
"css_files": [".css", ".sass", ".less", ".scss"]
}

with ".less" it works fine
Last edited by rmaksim on Mon Apr 02, 2012 7:45 am, edited 3 times in total.
rmaksim
 
Posts: 59
Joined: Sat Jul 02, 2011 7:31 pm

Re: Goto-CSS-Declaration

Postby rmaksim on Mon Apr 02, 2012 7:43 am

StevenRas wrote:Hi guys,
I really really love this package when working with css.
Now my question is:
Do you think you can extend it to make it work with PHP functions?

try using the "Goto Symbol" package
rmaksim
 
Posts: 59
Joined: Sat Jul 02, 2011 7:31 pm

Re: Goto-CSS-Declaration

Postby sheldno on Mon Apr 02, 2012 3:03 pm

rmaksim wrote:Preferences -> Package Settings -> Goto-CSS-Declaration -> Settings-Default

try adding the extension ".scss" (or ".erb" ?) to the list
{
"css_files": [".css", ".sass", ".less", ".scss"]
}

with ".less" it works fine

Unfortunately this doesn't work, I believe it's because the plugin only considers html files as ending with ".html", an option for "html_files" would solve this problem. In a Rails context most files end with .erb and only some of those files are css and only some are html, it would make most sense to be able to write the following:

{
"css_files": [".css", ".sass", ".less", ".css.erb", ".css.scss.erb"],
"html_files": [".html", ".html.erb"]
}


StevenRas wrote:Do you think you can extend it to make it work with PHP functions?

You can also try CTags: https://github.com/SublimeText/CTags
sheldno
 
Posts: 22
Joined: Thu Oct 06, 2011 4:09 pm

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 4 guests