Comments (5)
Thanks for spotting this bug, @john-cj ! I know what the root cause is, and trying to find how to fix it with minimal fallout (basically the scope names for columns 10 * n + 1 and 10 * n + 8 don't exist in the default color scheme, this causes it to fall back to the default color, but the matching rules made in a way that the previous group also captures the separator, and if the next group has a scope color defined it overwrites the previous scope color, but otherwise the separators remains colored by the previous group color)
You can actually fix the bug and have nice your own nice custom colors by setting use_custom_rainbow_colors
and optionally auto_adjust_rainbow_colors
. If you just set use_custom_rainbow_colors
you should theoretically be able to customize the colors as you like, see the README file. You can use this file as a template for your own custom colors: https://github.com/mechatroner/sublime_rainbow_csv/blob/master/RainbowCSV.sublime-color-scheme
from sublime_rainbow_csv.
Thanks, I will look it today.
from sublime_rainbow_csv.
One solution is to replace meta_scope
with meta_content_scope
in all syntax rules - this will group columns with trailing separators instead of preceding (just like in VSCode version) - but in that case, the internal python offset calculation logic will have to be adjusted too. Just thinking out loud.
from sublime_rainbow_csv.
I just released version 2.4.0 that should fix the comma bug.
from sublime_rainbow_csv.
Using 2.7.0
- I still seem to have a similar issue:
I've also attempted to use use_custom_rainbow_colors
but not quite understanding the rules.
from sublime_rainbow_csv.
Related Issues (20)
- PSV support HOT 2
- RBQL: Support monocolumn policy HOT 6
- Does this plugin support multiline column? HOT 5
- Plugin breaks when line is > 16383 characters long HOT 1
- Issue with importing uuid class? HOT 3
- A way to save query HOT 1
- Cannot run query on temporary buffer (i.e. unsaved file) HOT 2
- CSV auto-detection does not work when "A File Icon" package is enabled HOT 5
- The settings file "res://Packages/rainbow_csv/RainbowCSV.sublime-settings" could not be opened HOT 5
- Package disappeared after update HOT 20
- Align columns with spaces adds trailing spaces HOT 2
- Add slice support to the python backend
- Improve support for East Asian languages โโwhen using the โalignโ function
- Keybinding HOT 2
- Make generated syntaxes a sub-flavor of `text.csv` HOT 1
- Support multiline fields with arbitrary separators HOT 3
- Option to start columns at 0 HOT 5
- referencing by column name not working..? HOT 4
- use_custom_rainbow_colors has no effect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sublime_rainbow_csv.