Home Download Buy Blog Forum Support

(osx|windows|linux) Color Scheme Editor (BETA)

Re: (osx|windows|linux) Color Scheme Editor (BETA)

Postby facelessuser on Wed Apr 03, 2013 2:19 pm

@grant, it should already do the first, try it.

As for the second, I plan on it. It is pretty easy to do, I am just in development mode and will make it a package as soon as it is stable.
facelessuser
 
Posts: 1565
Joined: Tue Apr 05, 2011 7:38 pm

Re: (osx|windows|linux) Color Scheme Editor (BETA)

Postby Grant on Wed Apr 03, 2013 5:42 pm

Great minds think alike (and I should also try things before opening my big mouth).
Grant
 
Posts: 68
Joined: Fri Jan 20, 2012 2:42 pm

Re: (osx|windows|linux) Color Scheme Editor (BETA)

Postby facelessuser on Wed Apr 03, 2013 6:39 pm

Moving forward, I plan on making it more robust. When just opened normal, I plan on asking if the user wants to open a theme file, or create a new one. I want to change the open file dialog to accept "tmTheme.JSON" files as well (it already supports them via the -j command line option; probably just change it to look at the extension instead of requiring the user to specify open mode). Maybe add a search option. Maybe add a way to "save as".

From a plugin standpoint, I plan on allowing you to open a theme via the open dialog (it will still be direct edit, which is why a "save as" option would be nice), and possibly create a new theme also from sublime.

...oh and try and get linux running :(.

Probably need an icon for the editor...

Haven't decided how to distribute it yet. I know the Mac binary is 30MB and the windows is only 10MB, not sure about linux yet. Because I may not want to require a user to update 40+MB every time the plugin updates, I may provide the plugin without binaries, and you install or download the editor somewhere and point the plugin at it. The plugin could check the version to tell if you need to update it (after initial development is done, I hope not to be updating it a bunch).

Chime in if you have any ideas.
facelessuser
 
Posts: 1565
Joined: Tue Apr 05, 2011 7:38 pm

Re: (osx|windows|linux) Color Scheme Editor (BETA)

Postby quodlibet on Wed Apr 03, 2013 9:07 pm

facelessuser wrote:Don't even know if the 32bit version can run on the 64bit version of linux either...


Let me know if I can help with testing. I have one of each running Ubuntu 12.04. Sublime 3 only, I'm afraid.

I'm just about fed up with linux, as well -- at least, that's what I say under my breath in between cursing when I can't get things to work. But it only takes me a few minutes on another OS before I have to ask: "What do you mean I can't change this?" But then, customization is a sign of immaturity, I'm almost certain. Sigh.

Alex

Edit: slightly less crappy sentence.
quodlibet
 
Posts: 504
Joined: Sat Jun 18, 2011 5:53 pm

Re: (osx|windows|linux) Color Scheme Editor (BETA)

Postby facelessuser on Thu Apr 04, 2013 5:17 am

0.0.3 for OSX and Windows is now available.

Please read opening page for more details and for links as things have changed. Delete color_scheme_editor.py from you user folder. Install plugin from github, and then select your platform and download the binary to your user folder (if you wish to put it elsewhere, that can be configured in the plugin).

Changes:
Plugin
-Can now create a new theme via the command palette
-Can access the filepicker for the editor via the command palette
-Interlock check for version between plugin and binary

Binary
-Fix a bug were the tables weren't getting updated when the global background and foreground settings got changed
-If launched standalone, asks if you want to open an existing theme or create a new one
-If given a .tmtheme file or json file, the editor will now take appropriate action on its own.

Note:
OSX seems to hate the wildcards for the filepicker. The wildcards work fine in windows, but weird in OSX...I will have to resolve that at a later date.
facelessuser
 
Posts: 1565
Joined: Tue Apr 05, 2011 7:38 pm

Re: (osx|windows|linux) Color Scheme Editor (BETA)

Postby facelessuser on Thu Apr 04, 2013 1:47 pm

I should have OSX wildcard stuff in filepicker dialogs sorted out in next update. Turns out "*.JSON" works, but "*.tmTheme.JSON" does not. It seems to only respect the very end. This is fine though, in OSX I will simply let the user pick a JSON, and if it is not a "*.tmTheme.JSON" I will make them pick again until they get it right :).
facelessuser
 
Posts: 1565
Joined: Tue Apr 05, 2011 7:38 pm

Re: (osx|windows|linux) Color Scheme Editor (BETA)

Postby n00ge on Thu Apr 04, 2013 2:39 pm

I'd love to have a way to load undefined scopes into the theme editor when editing a theme for a particular language. Sometimes I hop into a different language and see elements that would nice to have some different highlighting. This would be a great way to get into that. Feel free to mark this down as a feature request for down the line if it's a pain in the ass.

Or... if there's a way to place your cursor somewhere, get the scope and either jump to that scope in your current color scheme or add it if it doesn't exist might be better.
http://twitter.com/n00ge
Sublime Text 3 dev builds | OS X 10.8.2 & Ubuntu 13.04
n00ge
 
Posts: 140
Joined: Mon Oct 05, 2009 1:23 am

Re: (osx|windows|linux) Color Scheme Editor (BETA)

Postby facelessuser on Thu Apr 04, 2013 7:06 pm

ScopeHunter is a plugin I wrote that you can configure to put the scope of what is under the cursor into your clipboard (it also can show you a lot of other stuff, but you configure it how you want it to work). So you can use that to quickly get the scope into your clipboard, then you can open up the scheme editor.

The tool and the plugin don't really communicate right now, so simply sending the editor process something to search for isn't possible at this time. I do plan on adding a search option, and who knows, maybe I will implement some kind of communication between the plugin and the editor down the road. I might also implement importing undefined scopes into a theme at a later date as well. I just have to wait till I have time to explore more options. Right now I just want to get the basic stuff down, and get it to a stable release.
facelessuser
 
Posts: 1565
Joined: Tue Apr 05, 2011 7:38 pm

Re: (osx|windows|linux) Color Scheme Editor (BETA)

Postby facelessuser on Fri Apr 05, 2013 6:42 am

Probably sometime tomorrow, I will probably post 0.0.4. This will add "save as" functionality, fix OSX wildcard file dialog issue, add file name in title bar, search etc.

Screen Shot 2013-04-05 at 12.06.18 AM.png
Screen Shot 2013-04-05 at 12.06.18 AM.png (79.09 KiB) Viewed 1885 times
facelessuser
 
Posts: 1565
Joined: Tue Apr 05, 2011 7:38 pm

Re: (osx|windows|linux) Color Scheme Editor (BETA)

Postby sublimator on Fri Apr 05, 2013 8:12 am

@facelessuser

You considered embedding pure python tornado 3.0 as a websocket server for (browser <--> sublime) communications ?

Angular JS / CoffeeScript / LiveReload etc make `html5` pretty damn sweet these days :)

re: scope hunting

Back in the day I was trying to hunt down a bug in the CSS grammar, and much to my confusion, multiple rules were applying the same scope name.

This led me to create a grammar generator that would create a unique id, patching the scope names with bla.do.dont.#0F3A4 etc

That way you can easily `*regexes-applied`

I say this, as creating color schemes is much the same task as a creating grammar at times.
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 5 guests