facelessuser / colorhelper Goto Github PK
View Code? Open in Web Editor NEWSublime plugin that provides helpful color previews and tooltips
Home Page: https://facelessuser.github.io/ColorHelper/
License: MIT License
Sublime plugin that provides helpful color previews and tooltips
Home Page: https://facelessuser.github.io/ColorHelper/
License: MIT License
It seems that, clicking on the phantom triggers the popup immediately and also locates the cursor to the color string, which then triggers the second render of the popup.
I can't record a gif because the gap is quite small that it doesn't show in a gif...
Currently the Package Control jinja2
dependency clashes with the Jinja2
Package. If you have both installed, you may find that the jinja2
dependency gets reinstalled over and over on restart, and may or may not function properly. PackageControl should not have allowed this scenario, but they are working to come up with a solution. If you are experiencing issues, you may have to chose either ColorHelper or Jinja2 until things are resolved.
Add support for proposed CSS4 format hwb. That way I won't have to do it later.
In build 3118, after click on color, the layer doesn't show
Apologies if this has already been addressed, but I couldn't find anything in issues.
I'd like to set "auto_popup": false,
and use a keyboard shortcut to activate the color picker when caret is on a color. Is there a command to use for key mappings?
I did what was written in installation (package installed), but have no popup or any windows that shown on https://facelessuser.github.io/ColorHelper/usage/#general-usage No reaction on triggers sych as # or rgb or any other from documentation. Misunderstanding, what's wrong?
Also I see note: "Popups are provided by the mdpopups dependency." - Give me more misunderstanding: should I install it too? if true then how (no info about it in internet)?
Help me, please - I like ColorHelper a lot and want use it!
Package Control: Removed directory for orphaned package jinja2
Package Control: Installing 1 missing dependency
ignored packages updated to: ["0_package_control_loader", "Anaconda", "Behave Color Scheme", "Color Highlighter", "ColorSchemeEditor", "DrSync", "FindKeyConflicts", "Git", "Project Manager", "Sublime Files", "SublimeHaskell", "SublimeLinter", "SublimeLinter-pylint", "Terminal", "Vintage"]
unloading plugin 0_package_control_loader.00-package_control
unloading plugin 0_package_control_loader.01-pygments
unloading plugin 0_package_control_loader.02-bz2
unloading plugin 0_package_control_loader.50-markupsafe
unloading plugin 0_package_control_loader.50-python-markdown
unloading plugin 0_package_control_loader.51-jinja2
unloading plugin 0_package_control_loader.55-mdpopups
reloading Packages/User/Package Control.sublime-settings
Package Control: Installed missing dependency jinja2
Package Control: Skipping automatic upgrade, last run at 2015-11-17 13:33:51, next run at 2015-11-17 14:33:51 or after
reloading Packages/User/Preferences.sublime-settings
ignored packages updated to: ["Anaconda", "Behave Color Scheme", "Color Highlighter", "ColorSchemeEditor", "DrSync", "FindKeyConflicts", "Git", "Project Manager", "Sublime Files", "SublimeHaskell", "SublimeLinter", "SublimeLinter-pylint", "Terminal", "Vintage"]
reloading plugin 0_package_control_loader.00-package_control
reloading plugin 0_package_control_loader.01-pygments
reloading plugin 0_package_control_loader.02-bz2
reloading plugin 0_package_control_loader.50-markupsafe
reloading plugin 0_package_control_loader.50-python-markdown
reloading plugin 0_package_control_loader.51-jinja2
reloading plugin 0_package_control_loader.55-mdpopups
error: Package Control
1 missing dependency was just installed. Sublime Text should be restarted, otherwise one or more of the installed packages may not function properly.
reloading Packages/User/Package Control.sublime-settings
reloading Packages/User/Preferences.sublime-settings
CSS color names are probably the most common and supported with webcolors
but some languages have their own set of named colors. An option to add user-defined color names would be nice. R, for example, has lots of named colors.
The option could work like this:
"colors_sets": {
"R": {
"aquamarine3": "#....",
"seagreen4": "#....",
...
},
"SomeOtherSet": {
"myred": "#fd0000"
}
}
Now I have a named set of colors, which I could add to allowed_colors
as part of the color_scanning
option like this "allowed_colors": ["R", "hex"]
Since the latest update I was excited to try out the inline color preview, but it doesn't seem to be working for me. I've checked the settings, global and user, and it is set to true. Along with that, since the update, the popup tooltip doesn't show up either. I'm on a Mac using the latest Yosemite release with Sublime Text 3.
After updating to the latest version I noted that hsl and hsla no longer opened the tooltip and was getting conversion errors in the console. Looking at your updates to color_helper.py it seems you left off the .rstrip('%') when adding the decode. I added it back and it all works fine for me now.
Thanks,
Bruce
If given a color FFBBAA
or FFBBAACC
, compress to FBA
and FBAC
respectively for hex and hexa.
Project scanning should be done in an external process.
Sorry if this issue may be on the wrong repo :X
I'm on Build 3114 and there are no updates.
Google says 3118 is a dev version.
Is there any way I can update to 3118 without rebuilding my whole setup?
Probably create a JSON file that specifies some of the options that aren't defined in the CSS so users can get full control of the theme.
When I click on picker, in console I have:
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 550, in run_
return self.run(edit, **args)
File "color_helper_picker in [ST path]/Installed Packages/ColorHelper.sublime-package", line 262, in run
File "color_helper_picker in [ST path]/Installed Packages/ColorHelper.sublime-package", line 59, in get_color_map
TypeError: color_box() got an unexpected keyword argument 'alpha'
I'm using this plugin with the latest 3 dev build (3107) at time of writing, and while I can put my cursor in a color and right click to open the helper, it doesn't open automatically for me.
Thee are a number of little bugs in regards to inserting that should be cleaned up.
Would it be possible to port this over for use in Atom? Would be a great addition. Thank you!
*) Ihmo the font size by default should be greater than now... or as a setting property maybe?
*) When I write code (hardcode, not select from palete/picker) in hex, the popup doesn't automatically close.
Feature: automatically generate palette with colors which I used in current file
Explore ditching icons for text. Ideally icons would be good, but Sublime renders diagonal and round lines of pngs so bad. It seems to skew their shape.
Is it possible to use this extension with sublime color scheme files *.tmTheme?
How can I do that?
CONVERT CALL:
convert -type TrueColorMatte -channel RGBA -size 32x32 -alpha transparent xc:none -fill "#00BCD4FF" -draw "circle 15,16 8,10" png32:"/Users/Yufan/Library/Application Support/Sublime Text 3/Packages/User/Color Highlighter/icons/00BCD4FF.png"
convert error:
/bin/sh: convert: command not found
Issue #13 required us to look for an entry in the color scheme with no scope
key to find the globals. But themes like the default Solarized (Dark)
do other wacky pointless things:
<dict>
<key>name</key>
<string>PHP: Class Function</string>
<key>settings</key>
<dict/>
</dict>
What purpose does this serve? I have no idea. It is literally an entry that is associated to no scope which makes it worthless...yet Sublime treats this as okay. So now we need to make sure an entry has no scope
and no name
๐.
When I enter in the palettes, it will be nice if I can have info about the color ( hex / rgb(a) value in tooltip? ), when I hover the cursor above him
This is what a lot of people asked for and now it should be possible. Yay!
Traceback (most recent call last):
File "color_helper in C:\Users\Po\AppData\Roaming\Sublime Text 3\Installed Packages\ColorHelper.sublime-package", line 120, in on_navigate
File "color_helper in C:\Users\Po\AppData\Roaming\Sublime Text 3\Installed Packages\ColorHelper.sublime-package", line 580, in show_colors
AttributeError: 'ColorHelperCommand' object has no attribute 'view_window'
I'm having an odd display issue:
I'm using ST3 on El Capitan with "theme": "Material-Theme-Darker.sublime-theme",
not show block current colors
only favorites, random colors, old clover, yet another
st3 3103
ubuntu 15.10
When I work on Windows, the popup doesn't show when click on color...
On Mac is OK.
Does anyone else have this?
Improve scope rules to handle Sass and SCSS better. Also generalize stylesheet project indexing to better handle CSS, SCSS, or Sass.
replace text, and the text file color index complete... appears in the status bar in place of the text made n replacement - if temporarily disable a plug, it can be seen
There are scenarios where use_hex_argb
will not work. If turn off scanning of current file it seems it won't work in new views.
i know its still in alpha & i know its more of a proof of concept but i was asking if there is a possibility to
#c03|92b
and hide the panel when u press esc
.rbg,hsl,etc..
clickable ,so if u want to convert from hex or vice/versa u just click the format u want and the plugin updates the current to whatever u choose.This isn't a big deal at all, really it is just puzzling. When I first start Sublime Text, the very first time any inline phantom color blocks are rendered the topmost one gets cut off:
It looks to me like it is the right size, it is just that its positioning is off. As far as I can tell it only happens then. Every other file thereafter, including the original one, renders all of the phantoms just fine.
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.