weslly / colorpicker Goto Github PK
View Code? Open in Web Editor NEWColor picker for Sublime Text
Home Page: http://weslly.github.io/ColorPicker
Color picker for Sublime Text
Home Page: http://weslly.github.io/ColorPicker
Super nitpicky, but any reason, on a Mac, that the colorpicker window doesn't get focus after using the keyboard shortcut? Otherwise, fantastic work, this was a much needed/missing feature from ST :)
OS: Windows 7 - 64bits;
Sublime Version: 2.0.2;
It was working just great, but today morning, I tried to use it and wasn't working anymore...
I installed Control Package, installed Color Picker and Emmet.
I sent this command on log:
sublime.log_commands(True)
sublime.log_input(True)
And received this:
key evt: shift+control+c
command: color_picker
any idea? Thanks!
I installed de ST3 and now I'm getting this error:
line 293, in run
NameError: global name 'CHOOSECOLOR' is not defined
Hi there,
since today (was working fine before) the following error pops up in the console when I try to open the color picker:
Traceback (most recent call last):
File "/opt/sublime_text/sublime_plugin.py", line 549, in run_
return self.run(edit)
File "/home/basti/.config/sublime-text-3/Packages/ColorPicker/sublimecp.py", line 354, in run
color = cp.pick(self.view.window(), selected)
File "/home/basti/.config/sublime-text-3/Packages/ColorPicker/sublimecp.py", line 309, in pick
proc = subprocess.Popen(args, stdout=subprocess.PIPE)
File "./subprocess.py", line 824, in __init__
File "./subprocess.py", line 1448, in _execute_child
PermissionError: [Errno 13] Permission denied
OS: Ubuntu 14.04
Sublime Text 3 Build 3065
ColorPicker v.1.11.0
Most people aren't great at base16. As a result, many of us use rgb(100, 100, 100)
instead of #646464
when authoring our CSS.
It would be great if this plugin's output color format was configurable. This is related to #18, but doesn't have cross-platform color picker implications.
only colorpick (MacOS) does
I installed ColorPicker from Package Control, when pressing ctrl-shift-c I would get this error:
python: can't open file '~/.config/sublime-text-2/Packages/ColorPicker/lib/linux_colorpicker.py': [Errno 13] Permission denied
I started poking around and it turns out that file was marked as write-only (reading was not allowed) for whatever reason. Maybe something is up with the package on Package Control.
For a temporary workaround I ran:
chmod +r ~/.config/sublime-text-2/Packages/ColorPicker/lib/linux_colorpicker.py
I've installed this plugin using Package Control, when I press ctrl-shift-c nothing happens and the following error appears in my console:
Traceback (most recent call last):
File "./sublime_plugin.py", line 282, in run_
File "./sublimecp.py", line 49, in run
File ".\subprocess.py", line 633, in init
File ".\subprocess.py", line 1139, in _execute_child
OSError: [Errno 13] Permission denied
I'm on Ubuntu 11.10, thanks.
I've installed the package but so far it doesn't work. I already use Ctrl+Shift+C for CSSComb and I cannot find the place to change the key bindings for the ColorPicker, no menu entry, nothing. Any clues as to why this is happening? I think it might be a really useful plugin and would definitely want to use it while working.
Hey,
Would you mind me telling that which color scheme you have used in the screenshots, because I don't find any similar color scheme and I am quite liking it.
The main window seems frozen when color picker is launched. Can't add text anymore. I need to close the color picker. No thread ?
Basically, I use Windows, and the system color picker sucks. I wish I had the Linux color picker. I realize this plugin uses the system color picker, but I would like to see an option to pick which style color picker this plugin uses, if that is possible, of course.
Hello and congrats for this awesome plugin ! I use it all the time.
But I have a question :
When Sublime Text 2 is in fullscreen mode (on OSX), when I launch the plugin, it's getting me out off the sublime window and when I have picked my color, I have to hit Sublime text 2 in the Dock to return to my code.
I think it a natural process of OSX but it's very boring.
There is a way to fix this ?
Thanks.
When modifying a color using the HSB Sliders, the Hue, Saturation and Brightness values are read correctly, but upon "Picking" the color, the outputted hex value is always weird.
E.g. HSB values 240, 38, 10 should result in a Hex value of #10101a (according to Photoshop, Illustrator and Paint.Net), but ColorPicker outputs #0d0d13. ColorPicker reads the #10101a value correctly to 240, 38, 10.
Also, if I reduce the brightness of a existing hex, and then look at the color using ColorPicker, you can see that the saturation has been reduced also.
Sidenote: If I change the color profile next to the drop down where you choose "HSB Sliders", I get a hex value that is closer to the right color, but it's still not quite right. Also, color picker does not remember the selected color profile, so this is a very cumbersome work-around...
P.S. ColorPicker is awesome for "designing in the browser", and the HSB Sliders rock for this -- if only they would work more consistently :) Keep it up!
This could be most-easily solved by adding a note to the readme indicatating which license the code is available under.
didn't find a way to ask for it, so i ask here :)
what is the Theme used on the first Screenshot? (mac)
thanks
Hi, the screenshot shows the opacity slider, however I'm not seeing that myself, am I missing something or has that been removed? I assume it would be possible if it were there, to generate rgba values?
Thanks!
Hi. I found this script quite useful but i've a compatibility problem with another script "shell turstein" (I use it to run shell commands in my Linux Sublime) because both plugins have the same hotkes (ctrl + shift + c).
Have this plugin a way to change the hotkey?
@weslly, wanted to an idea for simplification of the existing plugin by you before I think about implementing it.
Instead of unpacking all of your binaries, I want to just add .no-sublime-package
to the root of your project and add an __init__.py
file to your lib
folder which will keep your package from being installed as a zip and allow you to access scripts and binaries directly from lib. Then, at most, do a couple of chmods. No need to asynchronously do anything.
I think then I would probably just push the windows ctype abstraction down into the lib layer. It would really clean up the main code.
I just wanted to check with you because maybe you prefer it the current way.
I'm on Windows 7 and every time Sublime Text is started and I try to open ColorPicker, it opens in the background, so it appears as if ST was frozen and nothing happened. After manually focusing on the new window, subsequent launches of ColorPicker work normally.
Is there a way to give focus to the popup window the first time it's launched?
Add support for ST3.
Maybe this can be done by slightly modifying the source myself? I would like the output to be in ARGB format, like "0xFFRRGGBB". Can this be done?
Feature request: all hex colors to automatically reflect their colors.
This is probably not possible with sublime's API yet but as a feature request for the future it would make this plugin truly perfect.
Windows 7 ST3. Can't find it in install package...
When issuing the Ctrl+Shift+C command, the color picker window shows up but it shows up behind the current sublime window. This is a very annoying habit. Any way to change this?
very good plugin, you can have the option to call the color picker from the contextual menu, creating a file context.sublime-menu in the installation folder of the plugin with the following:
[{
"id": "color picker"
"caption": "Select Color", "command": "color_pick"
}]
(the translation by Google translator)
Plugin is not working on st3 on linux 64bit, on 32bit works fine
I'm trying to install this through package control and there are no errors yet the plugin does not seem to be working. There are no package settings, no new key bindings, etc...
The only file that seems relevant to colorPicker is the linux_colorpicker.py file in Packages/User/ColorPicker/bin
I've tried with both SL2 and SL3 on scientific linux 6.4
Am I out of luck?
hi all,
I'am on ST3 and custom color is not working for me.
I opened the window I added a custom color and when i reopen the window I didnt find the saved color.
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 549, in run_
return self.run(edit)
File "sublimecp in C:\Users\konst\AppData\Roaming\Sublime Text 3\Installed Packages\ColorPicker.sublime-package", line 172, in run
File "sublimecp in C:\Users\konst\AppData\Roaming\Sublime Text 3\Installed Packages\ColorPicker.sublime-package", line 240, in pick_win
File "X/ctypes/__init__.py", line 431, in LoadLibrary
File "X/ctypes/__init__.py", line 353, in __init__
OSError: [WinError 193] %1 не является приложением Win32
How to fix it?
I'm using Arch Linux and it uses Python 3. I think that's the problem why plugin doesn't work. I installed it successfully, but key binding doesn't do anything and ST2's console argues and says this:
startup, version: 2181 linux x64 channel: stable
executable: /opt/sublime-text/sublime_text
working dir: /home/dagrevis
packages path: /home/dagrevis/.config/sublime-text-2/Packages
settings path: /home/dagrevis/.config/sublime-text-2/Settings
PackageSetup not required
error parsing session: No data at: 0:0
Py_GetProgramName(): sublime_text
Py_GetExecPrefix(): .
Py_GetProgramFullPath():
Py_GetPath(): ./lib/python26.zip:./lib/python2.6/:./lib/python2.6/plat-linux2:./lib/python2.6/lib-tk:./lib/python2.6/lib-old:./lib/python2.6/lib-dynload
Py_GetPythonHome(): .
catalogue loaded
found 8 files for base name Default.sublime-keymap
found 1 files for base name Default.sublime-mousemap
found 5 files for base name Main.sublime-menu
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/BracketHighlighter/BracketHighlighter.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/BracketHighlighter/Elements.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/BracketHighlighter/bracket_plugin.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/ColorPicker/sublimecp.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/comment.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/copy_path.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/delete_word.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/detect_indentation.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/duplicate_line.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/echo.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/exec.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/fold.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/font.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/goto_line.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/indentation.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/kill_ring.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/mark.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/new_templates.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/open_file_settings.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/paragraph.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/save_on_focus_lost.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/scroll.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/set_unsaved_view_name.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/side_bar.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/sort.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/swap_line.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/switch_file.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/transform.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/transpose.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Default/trim_trailing_white_space.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Diff/diff.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/DocBlockr/jsdocs.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/HTML/encode_html_entities.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/HTML/html_completions.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/Package Control/Package Control.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/SideBarEnhancements/SideBar.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/SideBarEnhancements/StatusBarFileSize.py
Reloading plugin /home/dagrevis/.config/sublime-text-2/Packages/SideBarEnhancements/StatusBarModifiedTime.py
plugin init time: 0.144233
loading bindings
loading pointer bindings
found 1 files for base name Default.sublime-theme
theme loaded
app ready
pre session restore time: 0.327253
using gamma: 1 (err: 0)
wrote startup cache, added files: 2 orphaned files: 0 total files: 102 cache hits: 100
startup time: 0.520383 (package setup was not run)
loaded 1347 snippets
Package Control: Skipping automatic upgrade, last run at 2012-06-04 18:30:56, next run at 2012-06-04 19:30:56 or after
Help is much appreciated!
I was installed it via "Package Control",than I just pressing ctrl+shift+c to use it,but there are nothing has happened. I tried to check out the pygtk according to Issues #17 .
Than I tried to install pygtk, I got this return
ox@OX-Laptop: ~/.config/sublime-text-2/Packages/ColorPicker/lib $ sudo apt-get install python-gtk2
[sudo] password for ox:
Being read package lists ... Done
Being rebuilt dependencies
Reading state information ... Done
python-gtk2 is already the newest version.
Upgrade 0, 0 newly installed, 0 removed and 0 not upgraded.
pygtk is ready. finally,i thought maybe is permission issues so I was change all files permission under dir ColorPicker,but it doesn't work well...
I noticed ST2's console has some texts
color_pick
Traceback (most recent call last):
File "< string>", line 1, in < module>
NameError: name 'color_pick' is not defined
Hope someone can work out this problem...thx
On OSX, Sublime Text 3, press Cmd+Shift+C to open the color picker, then click the Sublime Text window (or anywhere else except for the color picker). The color picker disappears and Sublime Text freezes.
Hello.
I'm using Sublime Text build 2163 on Mac OS X 10.7.2 with your plugin and when i press cmd+shift+c i get the popup but my mouse cursor doesn't change it's look from carret when i hover the popup. It's really hard to point something with that carret since it's barely visible on that popup.
Hi... I am work with kubuntu 12.04 (ubuntu with kde interface)... recently i installed a colopicker plugin in my sublime text 2 and don't work... it show nothing... I don't know why
I've been using ColorPicker on Mac for quite a long time and I love it! The main usage I give is when I have to customize my company's App for different clients, I would just go to their sites and directly pick their main corporate colors using the GUI of ColorPicker without even leaving my Sublime active window. Just great.
The thing is that I've just downloaded the package for my personal Windows machine and... it sucks, I know CP uses the default color paletter of the OS but... is there any way of making the Windows Color Picker work the same way as the IOS does?
Thanks!
ST3 can open images (jpeg, pn, gif, etc..)
But I cannot open the color picker when the active tab in an image, nor can I switch to a tab displaying an image.
When I open the color picker then try to switch to a tab displaying an image, ST froze, but unfroze when closing the color picker modal.
Unfortunatly there is no error in the console...
My OS is Ubuntu 14.4 LTS 64bit
I already have the color picker shortcut bound for something else but the documentation doesn't mention how to change the keybind to show ColorPicker.
Just a quick reminder - could you make a new release? The README at https://sublime.wbond.net/packages/ColorPicker mentions ColorPicker.sublime-settings
, but it's not available yet.
Thanks!
Matt
I have been using ST2 for a few months and everything worked fine until today. ColorPicker does not show when a hex value is selected. Otherwise it shows up on the usual ctrl+shift+c combination.
I use archlinux, and the default python installation is version 3. The plugin fails and reports a syntax error on last line of "lib/linux_colorpicker.py".
I installed python2 and modified the first line of linux_colorpicker.py by replacing "python" with "python2".
Not sure if this is something that need to be fixed though (pretty trivial)
Hi !
I can't launch ColorPicker.
When I try, I have this on the log :
Traceback (most recent call last):
File "./sublime_plugin.py", line 362, in run_
File "./ColorPick.py", line 40, in run
File ".\subprocess.py", line 633, in __init__
File ".\subprocess.py", line 1139, in _execute_child
OSError: [Errno 8] Erreur de format pour exec()
Any idea ?
I have been using this plugin for a long time now with no problems. All of a sudden I booted up my computer one morning, opened up ST2, tried to change a color (selected color, pressed Ctrl+shift+c), and it was not working. Been a couple days now, tried disabling/re-enabling, uninstalling package/reinstalling, and rebooting computer. Nothing has worked. Have no idea why or how this happened.
Sublime Text 2.0.2,build 2221, licensed
Windows 7 Premium 64-bit
It would be nice to choose upper/lower case hex code so the generated codes fit in with existing code styles.
Not an issue at all, but what is the color scheme used in your Mac OSX screenshot? Thanks. Couldn't figure out any other way to contact you.
Any way to make the color picker load a currently selected color? (hex being most important, but rgb(a) would be nice too...)
If not, how about have it still open when I have text selected, and then overwrite that selection if I pick a color?
I used to use PhpStorm from Jet Brains, and they had the best solution I've seen... The gutter had a space for swatches, up to 4 i think, for any hex/rgb(a) colors on the line. Click the swatch, edit the color - it was nice... Of course, they also have a team of programmers at their disposal, but one can wish. =)
If I find the time, I'll try to pickup Python and see if I can help....
On Mavericks and ST3 I bring the picker up on a hexcode within an xml entry
<string>#191919</string>
First of all it doesn't select the hexcode selected wether I select the whole hex string or a single character of the string. The color that selected seems to be the latest used color of the picker.
Then changing manually the color and clicking on pick does not update the current hexcode selection.
any windows version in the roadmap ?
It's freezing and I have to close colorpicker... I don't know why :S
The key binding is interfering with another application on my system. I don't see a place that I can change the key binding for this utility on OS X
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.