GithubHelp home page GithubHelp logo

colorsublime / colorsublime-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blopker/color-switch

528.0 528.0 58.0 1.14 MB

Plugin for Color Sublime

License: MIT License

Makefile 0.31% Python 99.69%

colorsublime-plugin's People

Contributors

blopker avatar gianlucaguarini avatar tracy-tra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

colorsublime-plugin's Issues

Not finding Colorsublime

Hi!

I am searching through Package Control -> Install package and I can't find Colorsublime. Is it gone?

Support ST2

Now that the plugin is greatly simplified supporting ST2 should be investigated.

Jump and Browse

Hello,

After I have installed a theme, if I want to again start from that particular selection - how to do that,.

For e.g. when I installed Druid theme the Colorsublime drop down selection closed. Now if I want to again start from Druid, is it possible.

Themes sidebar will not be installed.

I installed colorsublime via package manager. When I install the theme the color scheme is installed just fine but the sidebar wont.
Using sublime3 build 3065

Sidebar style not updating

None of the themes update the sidebar on OSX. I'm not sure if this is a bug, or the themes just don't do it, but somehow I thought it weird not a single theme does it.

[Feature request] Allow to scroll themes faster via key bindings.

It would be great to have ability to scroll sometimes themes list faster, for example by ⇧+↑ and ⇧+↓ (Shift plus arrow keys), or ⇞ (PgUp) and ⇟ (PgDown), or even ↖︎ (Home) and ↘︎ (End). I have not tested this buttons on Windows and Linux yet, because I majorly use Sublime under OS X.

Split out "util" code?

A lot of the code used in Colorsublime-Plugin is "utility" code that could be useful in other plugins. Example: status.py. Any chance you could split this out into a sub-repo that others could include in their own projects? You could then include this yourself using a subtree or submodule. I can do this myself, but I'd have to maintain a fork then 😄

Proxy Support

I'm getting errors when I attempt to get a list of themes:

Running install command.
Colorsublime: Urllib downloader failed: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Traceback (most recent call last):
  File "X/urllib/request.py", line 1252, in do_open
  File "X/http/client.py", line 1049, in request
  File "X/http/client.py", line 1087, in _send_request
  File "X/http/client.py", line 1045, in endheaders
  File "X/http/client.py", line 890, in _send_output
  File "X/http/client.py", line 828, in send
  File "X/http/client.py", line 1182, in connect
  File "X/socket.py", line 424, in create_connection
  File "X/socket.py", line 415, in create_connection
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "colorsublime.http.downloaders.urllib in C:\Users\sfinucan\AppData\Roaming\Sublime Text 3\Installed Packages\Colorsublime.sublime-package", line 26, in get
  File "X/urllib/request.py", line 160, in urlopen
  File "X/urllib/request.py", line 473, in open
  File "X/urllib/request.py", line 491, in _open
  File "X/urllib/request.py", line 451, in _call_chain
  File "X/urllib/request.py", line 1287, in https_open
  File "X/urllib/request.py", line 1255, in do_open
urllib.error.URLError: <urlopen error [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>
Colorsublime: 'bytes' object has no attribute 'getcode'
Traceback (most recent call last):
  File "colorsublime.http in C:\Users\sfinucan\AppData\Roaming\Sublime Text 3\Installed Packages\Colorsublime.sublime-package", line 33, in _run_downloader
  File "colorsublime.http.downloaders.urllib in C:\Users\sfinucan\AppData\Roaming\Sublime Text 3\Installed Packages\Colorsublime.sublime-package", line 36, in get_json
  File "colorsublime.http.downloaders.urllib in C:\Users\sfinucan\AppData\Roaming\Sublime Text 3\Installed Packages\Colorsublime.sublime-package", line 31, in get
AttributeError: 'bytes' object has no attribute 'getcode'
Colorsublime: Command execution error:
Traceback (most recent call last):
  File "colorsublime.async in C:\Users\sfinucan\AppData\Roaming\Sublime Text 3\Installed Packages\Colorsublime.sublime-package", line 43, in cb
  File "colorsublime.lib.concurrent.futures._base in C:\Users\sfinucan\AppData\Roaming\Sublime Text 3\Installed Packages\Colorsublime.sublime-package", line 397, in result
  File "colorsublime.lib.concurrent.futures._base in C:\Users\sfinucan\AppData\Roaming\Sublime Text 3\Installed Packages\Colorsublime.sublime-package", line 356, in __get_result
  File "colorsublime.lib.concurrent.futures.thread in C:\Users\sfinucan\AppData\Roaming\Sublime Text 3\Installed Packages\Colorsublime.sublime-package", line 72, in run
  File "colorsublime.commands in C:\Users\sfinucan\AppData\Roaming\Sublime Text 3\Installed Packages\Colorsublime.sublime-package", line 34, in fetch_theme_list
TypeError: 'bool' object is not iterable
Colorsublime: Theme list not found. Please check internet connection or enable debug in the settings and report the stack traces.
Colorsublime: ERROR: Theme list not found. Please check internet connection or enable debug in the settings and report the stack traces.

I suspect this is because I need to direct my traffic through a proxy. Therefore, I'd like to see proxy support added. I should note that this may already be present - I haven't looked very hard :) - but it doesn't appear to be easily configurable (i.e. via settings) if so.

PS: This also appears to show some other small bugs, like the TypeError one. I can open a new issue for these if you'd like.

PPS: Environment is:

  • Windows 7 x64 (+ latest updates)
  • Sublime Text 3 (latest version)

Error: Theme list not found

I am getting this error when trying to install themes via package control. Any insights?

thanks in advance

Add link to Colorsublime site in command menu.

I'd like to add a link to the command menu that opens their browser to the Colorsublime site. It will show up next to the Colorsublime: Install Theme command.

@GianlucaGuarini, do you have any input on what it could be called? Something like Colorsublime: Discover Themes or, I dunno.

Did you ever thought about making a Themesublime?

You are about to read some bad English and I am really sorry about it I am not a native English speaker.
Hey developer I like colorsublime it really saves my time and it's easy to use
but I was thinking is there is anyway you can make a ThemeSublime so that user just hove over a theme to see what it looks like.
it's completely similar to color sublime the only difference is colorsublime changes the colors of the sublime and themesublime as you may have guessed it changes the theme of the sublime editor.

but I think you can't make this because of sublime editor themeing process everytime a user enable's a theme a user have to restart to make it completely compatible so I want to know is there is any way we can bypass this.

1 idea I have thought is
Our option is let's make the hovering option seamless as possible and after user hit enter to install the theme they just have to restart the sublime editor
for example
let the user see what the theme looks like and then when the user hit enter for theme to install they just have to restart it after that.

So what you think did I nail it I don't think so 🤔 but what I want to know is will you make or atleast even try it
thanx for reading it.

Configure installed plugins

Would it be possible in the future to include handling an array of installed themes (cf. Package Control's list of installed plugins)? I like to keep my various computers in sync via a dotfiles repo, so having a way of broadcasting theme changes via my .sublime-settings files would be really useful.

Install Theme does not work

Today, I'm having error message «Themes list not found. Check internet connection or enable debug in session and report a bug».
I don't know how to enable debug mode for plugin.

Colors don't match

Hi,
I'm having a weird issue where colors from the preview in the page don't match the ones in Sublime.
Using Sublime build 3065, and chosen syntax in the screenshots is SQL on both.
Any ideas? Thanks in advance.

1
2

Killed Package Manager

So after installing this, it has killed the Package Manager.

Package Control no longer exists. Completely removed Sublime Text and re-installed, got it back, installed the package again, bam gone...

Connection problem ?

Hello!
I'm trying to run "install themes" but I get this error:
ERROR:Colorsublime.colorsublime.status:Theme list not found. Please check internet connection or enable debug in settings and report the stack traces. INFO:Colorsublime.colorsublime.status:ERROR: Theme list not found. Please check internet connection or enable debug in settings and report the stack traces. Running install command.

ERROR:Colorsublime.colorsublime.http:'bytes' object has no attribute 'getcode'
Traceback (most recent call last):
  File "colorsublime.http in C:\Users\abelli\Programs\Sublime Text Build 3103\Data\Installed Packages\Colorsublime.sublime-package", line 23, in _run_downloader
  File "colorsublime.http.downloaders.urllib in C:\Users\abelli\Programs\Sublime Text Build 3103\Data\Installed Packages\Colorsublime.sublime-package", line 33, in get
AttributeError: 'bytes' object has no attribute 'getcode'
ERROR:Colorsublime.colorsublime.async:Command execution error:
Traceback (most recent call last):
  File "colorsublime.async in C:\Users\abelli\Programs\Sublime Text Build 3103\Data\Installed Packages\Colorsublime.sublime-package", line 43, in cb
  File "colorsublime.lib.concurrent.futures._base in C:\Users\abelli\Programs\Sublime Text Build 3103\Data\Installed Packages\Colorsublime.sublime-package", line 397, in result
  File "colorsublime.lib.concurrent.futures._base in C:\Users\abelli\Programs\Sublime Text Build 3103\Data\Installed Packages\Colorsublime.sublime-package", line 356, in __get_result
  File "colorsublime.lib.concurrent.futures.thread in C:\Users\abelli\Programs\Sublime Text Build 3103\Data\Installed Packages\Colorsublime.sublime-package", line 72, in run
  File "colorsublime.commands in C:\Users\abelli\Programs\Sublime Text Build 3103\Data\Installed Packages\Colorsublime.sublime-package", line 30, in fetch_repo
  File "colorsublime.io in C:\Users\abelli\Programs\Sublime Text Build 3103\Data\Installed Packages\Colorsublime.sublime-package", line 23, in extract
  File "./python3.3/tempfile.py", line 660, in write

My connection is working, other plugins are working correctly, what is my problem?
I checked this url in the settings:
"repo_url": "https://github.com/Colorsublime/Colorsublime-Themes/archive/master.zip"
and it's working...

plugin no longer works

I can remove and install colorsublime through package control, but it no longer works.

Specifically it no longer shows up in the commad+shift+P menu.

Can't Download Theme List

Hi,
At first, i want to thank you for such a great plug-in.
I've installed your plug-in via Package Control, but can't install any theme.
Here the debug log.

Running install command.
DEBUG:Colorsublime.Colorsublime:32: HTTP url https://raw2.github.com/Colorsublime/Colorsublime-Themes/master/themes.json with function get_json
DEBUG:Colorsublime.Colorsublime:20: Curl downloader getting url https://raw2.github.com/Colorsublime/Colorsublime-Themes/master/themes.json
ERROR:Colorsublime.Colorsublime:23: Curl downloader failed.
Traceback (most recent call last):
File "colorsublime.http.downloaders.curl in /home/sercan/.config/sublime-text-3/Installed Packages/Colorsublime.sublime-package", line 21, in get
File "./subprocess.py", line 589, in check_output
subprocess.CalledProcessError: Command '['curl', '--fail', 'https://raw2.github.com/Colorsublime/Colorsublime-Themes/master/themes.json']' returned non-zero exit status 60
ERROR:Colorsublime.Colorsublime:46: Command execution error:
Traceback (most recent call last):
File "colorsublime.async in /home/sercan/.config/sublime-text-3/Installed Packages/Colorsublime.sublime-package", line 43, in cb
File "colorsublime.lib.concurrent.futures._base in /home/sercan/.config/sublime-text-3/Installed Packages/Colorsublime.sublime-package", line 397, in result
File "colorsublime.lib.concurrent.futures._base in /home/sercan/.config/sublime-text-3/Installed Packages/Colorsublime.sublime-package", line 356, in __get_result
File "colorsublime.lib.concurrent.futures.thread in /home/sercan/.config/sublime-text-3/Installed Packages/Colorsublime.sublime-package", line 72, in run
File "colorsublime.commands in /home/sercan/.config/sublime-text-3/Installed Packages/Colorsublime.sublime-package", line 34, in fetch_theme_list
TypeError: 'bool' object is not iterable
ERROR:Colorsublime.Colorsublime:32: Theme list not found. Please check internet connection or enable debug in the settings and report the stack traces.
INFO:Colorsublime.Colorsublime:21: ERROR: Theme list not found. Please check internet connection or enable debug in the settings and report the stack traces.

Sublime Lock up

The plugin causes Sublime to lock up when installing a theme. Once Sublime unlocks it opens the list of themes for a frame an installs one. I have tried digging around in the code to track this one down, but can't quite figure out what is causing it.

The lock up occurs when extracting the themes from the downloaded archive, specifically the call to the extractall function. A second lock up occurs when the plugin display_list function returns even if it is empty.

I'm scratching my head as to what the root cause of these lock up are.

This is happening on Mac OS 10.14.1 with build 3176.

Semantics... (not really an issue)

Your system should really be changed - the names of these things I mean. You call them "Themes" when they are really not themes (entire UI for Sublime Text), but rather color schemes.

Other than that, I do love the system. Sure makes it easy to change color schemes on the fly.

Doesn't work with ST2

I've cloned via git to my Packages directory, and Colorsublime Settings menu shows up, but the Color Sublime menu under Color Scheme does not.

Your package is also not selectable via Package Control.

Add .sublime-color-scheme files, too

As of Build 3170 (v3.1, released May 7, 2018), Sublime now also supports JSON-formatted .sublime-color-scheme files in addition to the old XML-based .tmTheme format. Having the ability to include them would be fantastic.

Add Logo

This repo needs a cool logo like the Themes one. Anyone game? My art skils are lacking 😦

Windows Weirdness

First of all: awesome plugin. Just a small problem. I dev on the dreaded Windows, and when navigating to the "Install Theme" option, interesting things occur.

If it's the first time the plugin is run, the pane will close instantly and the theme will change instantly to 3024 (Day), since it is the first theme in the list.

If this is a subsequent call to "Install Theme," it works as advertised until you select with the arrow keys an option that hasn't been previewed previously. Then it will once again close the pane and the theme will change as if installed.

This makes using the plugin very cumbersome.

What seems to be happening is the Windows command prompt pops up when a theme that has not been previously previewed is selected via the arrow keys, and the cmd popup is making Sublime lose focus. The lost focus causes Sublime's command window to close, which breaks the whole "scroll to preview" functionality and results in the "preview" sticking around as if it were installed, confusing the user.

After going through the process several dozen times, I did finally land on Acai, a nice alternative theme to my current favorite, Sunburst. Thanks for the plugin!

“Theme” nomenclature is incorrect; should be “color scheme”

Sublime Text supports two kinds of user interface customisation packages: user interface themes (.sublime-theme) and color schemes (.tmTheme). Themes control the appearance of the editor chrome (sidebar, tabs, search bar, pop-up palette, etc.), while color schemes control the appearance of text within the editor viewport.

The filename extension .tmTheme used for color schemes is a legacy of TextMate compatibility.

Consequently, the packages that Colorsublime installs are properly called color schemes, and not themes. I recommend, therefore, that the Colorsublime commands “Browse Themes” and “Install Theme” be renamed to “Browse Color Schemes” and “Install Color Scheme”.

Wrong names shown in Install Theme pop-up

When browsing color schemes in the Install Theme pop-up menu, the color scheme names shown are incorrect. For example, when I select Muukii in the pop-up, the preview that I see is actually showing the Tron theme. If I select Muukii from the pop-up, the plug-in installs the Tron theme (and it shows as Tron.tmTheme in my Preferences.sublime-settings).

How do you use it?

It might be obvious to most, but the README ought to include instructions of how to use the plugin after it's been installed.

Colorsublime causes Sublime Text to hog CPU

Love the plugin, but on my new laptop, it causes Sublime Text to hog the CPU like crazy and the fans to spin up very high.

Dell Precision 5550
Core i9-10885H
Ubuntu 20.04
Sublime Text 4

CPU usage of Sublime Text jumps to 6% with ~6-7 processes running, sometimes with one process up to 11% when this plugin is enabled. With it disabled, CPU usage is negligible (~0). Tried it with a few different themes.

Customize colors of an installed theme

Is it possible to edit a *.tmTheme file in "Packages/Colorsublime - Themes" ?

I’ve got this line in my "User/Preferences.sublime-settings"
"color_scheme": "Packages/Colorsublime - Themes/TwoStones.tmTheme",

When I modify it, it doesn’t update colors in Sublime.

Any idea ?
Thx

Dreamweaver PHP Comment Style

Hi there. Sorry if this isnt in the right section. I'm using the colorsublime plugin Dreamweaver Theme and its awesome. However, when I view a php file the // or /* */ are not colored orange like the enclosed comment. Is there a piece of code i could use to change that?
screen shot 2015-10-19 at 9 44 53 am

Latest version on package control shows up as 'Color Switch' and fails to connect

I had this plugin working (it's awesome thanks!) on several machines, but I just reformatted and the version its pulling from package control for sublime text 3 is acting strange.

It's showing up in package control as Colorsublime, but when you ctrl+shift+p it shows up as 'ColorSwitch: Install Theme'. Then when you select it it fails to connect to w/e server its trying to connect to and exits.

"Error loading colour scheme" (but it actually works)

After installing the plugin, I can select all the themes through Sublime Text's own UI, but if I try to use the command "Colorsublime: Install Theme", selecting a theme gives me an error. The install does succeed, but it seems I need to restart Sublime for the new theme to take effect.

"Error loading colour scheme Packages/Colorsublime - Themes/1337.tmTheme: Unable to open Packages/Colorsublime - Themes/1337.tmTheme".

Looks like this repo hasn't been updated in 5 years, so maybe something broke with the new version of Sublime Text?

(Amusingly, all the themes are already downloaded in the cache folder, and I can select them through Sublime's UI without "installing" them, so the whole thing seems a bit strange (perhaps the functionality made more sense in an older version of Sublime?)

Doesn't work on latest ST3

ST3 build 3126 on Linux:

reloading plugin Colorsublime.colorsublime-plugin
Traceback (most recent call last):
  File "/opt/sublime_text/sublime_plugin.py", line 109, in reload_plugin
    m = importlib.import_module(modulename)
  File "./python3.3/importlib/__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "/opt/sublime_text/sublime_plugin.py", line 915, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "colorsublime-plugin in /home/tobia/.config/sublime-text-3/Installed Packages/Colorsublime.sublime-package", line 6, in <module>
  File "/opt/sublime_text/sublime_plugin.py", line 915, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "colorsublime.commands in /home/tobia/.config/sublime-text-3/Installed Packages/Colorsublime.sublime-package", line 16, in <module>
  File "/opt/sublime_text/sublime_plugin.py", line 915, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "colorsublime.http in /home/tobia/.config/sublime-text-3/Installed Packages/Colorsublime.sublime-package", line 6, in <module>
  File "/opt/sublime_text/sublime_plugin.py", line 915, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "colorsublime.http.downloaders in /home/tobia/.config/sublime-text-3/Installed Packages/Colorsublime.sublime-package", line 4, in <module>
  File "/opt/sublime_text/sublime_plugin.py", line 915, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "colorsublime.http.downloaders.urllib in /home/tobia/.config/sublime-text-3/Installed Packages/Colorsublime.sublime-package", line 5, in <module>
ImportError: cannot import name error

Configure Path for Themes

Colorsublime is a great plugin. :)
Just curious - I try to keep my User directory clean - and whenever I preview a theme, that theme is automatically downloaded and dumped into the directory - fills up quickly.

Is there a way to configure the directory where these are dumped? Specially, I'd like to be able to dump them into User/Packages/Colorsublime/Themes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.