Home Download Buy Blog Forum Support

CSS Select ( WebDevelopment Package)

Re: CSS Select

Postby vim on Tue Jun 30, 2009 5:54 am

COOL!
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: CSS Select

Postby SteveCooperOrg on Tue Jun 30, 2009 10:18 am

That is utterly bionic.

I have a feature suggestion; if the cursor is inside a javascript string, use that as the css selector. So you can imagine code like this;

Code: Select all
    <script type="text/javascript>
        // jQuery call to display the #my-dialog div as a dialog box.
        $("#my-dialog").dialog('open');
    </script>


So if you put your cursor into the string ('#my-dialog') and press a key, it'll select the div for your dialog.

This is a very nice way for people to jump from the javascript that manipulates DOM elements straight to the elements themselves.
Maybe what you're looking for is at the http://www.sublimetextwiki.com
SteveCooperOrg
 
Posts: 193
Joined: Thu Mar 20, 2008 9:53 am

Re: CSS Select

Postby EJ12N on Tue Jun 30, 2009 2:30 pm

Nice you actually made it :D GJ
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm

Re: CSS Select

Postby jps on Thu Jul 02, 2009 2:19 pm

That's crazy cool!
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: CSS Select

Postby EJ12N on Mon Jul 06, 2009 3:59 pm

really GJ nick that takes care of the features I wanted =]
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm

Re: CSS Select

Postby gpfsmurf on Mon Jul 06, 2009 6:05 pm

Amazing... can't wait to try it out :D

When parsing with lxml, how do you get the actual text-file position of an element (i.e. the sublime Region)?
gpfsmurf
 
Posts: 211
Joined: Mon Jun 23, 2008 6:31 pm

Re: CSS Select

Postby vim on Tue Jul 14, 2009 7:59 pm

does it have any special dependencies?
Code: Select all
ImportError: No module named lxml
Reloading plugin C:\...\Sublime Text\Packages\webdevelopment/tidyhtml.py
Traceback (most recent call last):
  File ".\sublimeplugin.py", line 39, in reloadPlugin
  File ".\tidyhtml.py", line 15, in <module>
    from indentation import normed_indentation_pt, handle_tabs
ImportError: No module named indentation
Reloading plugin C:\...\Sublime Text\Packages\webdevelopment/tidyhtml.py
Traceback (most recent call last):
  File ".\sublimeplugin.py", line 39, in reloadPlugin
  File ".\tidyhtml.py", line 15, in <module>
    from indentation import normed_indentation_pt, handle_tabs
ImportError: No module named indentation
Unknown external include source.smarty included from text.html.basic
Unknown external include source.applescript included from source.shell
Last edited by vim on Sat Aug 08, 2009 2:02 pm, edited 1 time in total.
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: CSS Select

Postby EJ12N on Fri Aug 07, 2009 2:27 pm

sublimator wrote:Ohk as EJ12N just pointed out, I'm a space cadet and haven't been pushing the latest changes. Mostly because I need to rewrite a lot of this. The developer of lxml has given me some tips to speed it up a lot. So if you use this, or want to before `The Great Rewrite` don't come bitching to me that my updates broke your configs or I changed commands etc If it blows anything up and you lose your work: TOUGH. Don't download strange source :) </waiver>

In any case, I just pushed the latest changes. I'd recommend getting the version of AAALoadFirstExtensions from bitbucket if you plan to have a play.

I'm sleepy. Over.


Thanks plugin is awesome :D
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm

Re: CSS Select ( WebDevelopment Package)

Postby ilya on Sat Oct 17, 2009 10:10 pm

I thought I saw somewhere screencast, which shows this technique with the CSS file. Was it?
ilya
 
Posts: 122
Joined: Fri Sep 11, 2009 8:32 pm

Re: CSS Select ( WebDevelopment Package)

Postby ilya on Sun Oct 18, 2009 12:30 pm

If you have problems with `unknown entities` replace the entity with a numerical code "&nbsp;" : "&#160;"

Sublimator, is it possible to eventually make the possibility to use character entities? For example, I only use the character entities, and I have all the projects is teeming with such.
ilya
 
Posts: 122
Joined: Fri Sep 11, 2009 8:32 pm

Next

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 6 guests