Home Download Buy Blog Forum Support

New Django support for ST2

New Django support for ST2

Postby squ1b3r on Wed Mar 02, 2011 3:27 pm

Hi, guys!

Here is my first version of the package for Django with new syntax highlighting in templates, snippets and completions.

This is a small description: https://github.com/squ1b3r/Djaneiro/blo ... README.rst

You can get the code here: https://github.com/squ1b3r/Djaneiro

Screen shot 2011-03-02 at 8.10.34 PM.png
Screen shot 2011-03-02 at 8.10.34 PM.png (9.38 KiB) Viewed 6825 times


Also if you have any suggestion or ideas and pull request, welcome!

Enjoy!
Andrew

Update: Feb 6 !important Changed project structure. If you get some load syntax error, you need delete all *.cache files from the Djaneiro directory.
Last edited by squ1b3r on Tue Feb 07, 2012 6:08 am, edited 10 times in total.
squ1b3r
 
Posts: 45
Joined: Fri Feb 11, 2011 6:35 am

Re: New Django support for ST2

Postby lee_connell on Thu Mar 03, 2011 5:01 pm

SWEEET! :) Thanks!
lee_connell
 
Posts: 7
Joined: Mon Feb 28, 2011 2:12 am

Re: New Django support for ST2

Postby squ1b3r on Fri Mar 04, 2011 5:29 pm

lee_connell wrote:SWEEET! :) Thanks!


Thanks a lot.

Now, i'm working on list of completions for all django API.
squ1b3r
 
Posts: 45
Joined: Fri Feb 11, 2011 6:35 am

Re: New Django support for ST2

Postby theblacklion on Fri Mar 04, 2011 9:29 pm

Very nice! Keep it up :)
theblacklion
 
Posts: 67
Joined: Sat Feb 05, 2011 10:07 pm
Location: Hannover, Germany

Re: New Django support for ST2

Postby lee_connell on Sat Mar 05, 2011 1:50 am

Typo:

{ "trigger": "unique_for_year", "contents": "unique_for_month='$1'" },

This should be "unique_for_year='$1'"

{ "trigger": "unique_together", "contents": "unique_together = ('$1',)" },
{ "trigger": "verbose_name = ", "contents": "verbose_name = '$1'" },
{ "trigger": "verbose_name_plural", "contents": "verbose_name_plural = '$1'" },

These have inconsistent spacing between the equals sign compared to the rest of the triggers.
lee_connell
 
Posts: 7
Joined: Mon Feb 28, 2011 2:12 am

Re: New Django support for ST2

Postby squ1b3r on Sat Mar 05, 2011 4:33 am

lee_connell wrote:Typo:

{ "trigger": "unique_for_year", "contents": "unique_for_month='$1'" },

This should be "unique_for_year='$1'"


Fixed. Thank you!

lee_connell wrote:Typo:

{ "trigger": "unique_together", "contents": "unique_together = ('$1',)" },
{ "trigger": "verbose_name = ", "contents": "verbose_name = '$1'" },
{ "trigger": "verbose_name_plural", "contents": "verbose_name_plural = '$1'" },

These have inconsistent spacing between the equals sign compared to the rest of the triggers.


All triggers without spacing between the equals sign for models arguments, and with spacing between the equals sign for declaration. See this e.g. http://docs.djangoproject.com/en/dev/re ... rbose-name
squ1b3r
 
Posts: 45
Joined: Fri Feb 11, 2011 6:35 am

Re: New Django support for ST2

Postby squ1b3r on Sun Mar 13, 2011 7:48 am

Check new version please. I'm looking forward to feedback!
squ1b3r
 
Posts: 45
Joined: Fri Feb 11, 2011 6:35 am

Re: New Django support for ST2

Postby johnthedebs on Tue Mar 15, 2011 2:41 pm

Just started using this, and it looks great. Thanks for putting it together!
johnthedebs
 
Posts: 1
Joined: Tue Mar 15, 2011 2:37 pm

Re: New Django support for ST2

Postby ehamiter on Wed Apr 27, 2011 2:43 am

Works great, thanks for your contribution!
ehamiter
 
Posts: 67
Joined: Wed Apr 27, 2011 2:42 am

Re: New Django support for ST2

Postby myusuf3 on Sat Jul 16, 2011 8:19 pm

excellent! image of the shortcuts for easy printing would be nice too! :D
myusuf3
 
Posts: 5
Joined: Sat Jul 16, 2011 7:41 pm

Next

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 7 guests

cron