GithubHelp home page GithubHelp logo

Comments (5)

mechatroner avatar mechatroner commented on May 29, 2024 1

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.

john-cj avatar john-cj commented on May 29, 2024

Thanks, I will look it today.

from sublime_rainbow_csv.

mechatroner avatar mechatroner commented on May 29, 2024

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.

mechatroner avatar mechatroner commented on May 29, 2024

I just released version 2.4.0 that should fix the comma bug.

from sublime_rainbow_csv.

Huntk23 avatar Huntk23 commented on May 29, 2024

@mechatroner

Using 2.7.0 - I still seem to have a similar issue:

image

I've also attempted to use use_custom_rainbow_colors but not quite understanding the rules.

from sublime_rainbow_csv.

Related Issues (20)

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.