colorsublime / colorsublime-plugin Goto Github PK
View Code? Open in Web Editor NEWThis project forked from blopker/color-switch
Plugin for Color Sublime
License: MIT License
This project forked from blopker/color-switch
Plugin for Color Sublime
License: MIT License
Hi!
I am searching through Package Control -> Install package and I can't find Colorsublime. Is it gone?
All the themes appear as expected when using the colorsublime prompt, but they also appear in the "select color scheme" menu, not just the ones that were installed. I added colorsublime to the ignored packages list, but all the remote themes are still in the color scheme selector list.
Now that the plugin is greatly simplified supporting ST2 should be investigated.
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.
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
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.
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.
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 😄
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:
I am getting this error when trying to install themes via package control. Any insights?
thanks in advance
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.
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.
Is there a command to uninstall themes?
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.
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.
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...
I have open sourced our site so any link to colorsublime.com should be pointing to https://colorsublime.github.io/
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...
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.
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.
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.
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.
I'm running BunsenLabs, a debian-based distro, on a Lenovo ThinkPad. I've upgrade SublimeText3 to 3124.
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.
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.
This repo needs a cool logo like the Themes one. Anyone game? My art skils are lacking 😦
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!
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”.
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).
I've installed colorsublime through the package installer, but there are no changes in the colour scheme menu.
It might be obvious to most, but the README ought to include instructions of how to use the plugin after it's been installed.
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.
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
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.
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?)
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
I'm trying to install this plugin. I have the python code I copy and pasted into the Sublime 3 console.
but all you guys have is Run “Package Control: Install Package” command
.
sorry, I'm new.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.