Code Monkey home page Code Monkey logo

Comments (8)

facelessuser avatar facelessuser commented on June 10, 2024 1

You can just run the following command from the command palette: Color Helper: Override View's Scanning. I'm not sure if I documented it though....

from colorhelper.

facelessuser avatar facelessuser commented on June 10, 2024

For clarity, the above command will temporarily enable basic previews and such in a text file. Personally, I would not just enable generic scanning in all text files. I like to enable it only when I need it.

from colorhelper.

facelessuser avatar facelessuser commented on June 10, 2024

I'm not specifically sure what the request is asking, but I don't think we'll encourage people to generically enable previews everywhere. With that said, I will double-check the documentation and see if we specifically talk about view overrides, and if not, or if it doesn't appear clear, I will update the docs accordingly.

from colorhelper.

Mark-Joy avatar Mark-Joy commented on June 10, 2024

Well, not all users are in html/xml/css things.
I just want a convenience way to pickup/choose colors in some setting files, and there was like no quick tooltips to do that on the home page. Like quickly enable it, use it, done, disable it :D

Anyway, thank you for your great project! When it's enable the right way, it's really help me to do the job faster and easier.

from colorhelper.

facelessuser avatar facelessuser commented on June 10, 2024

Well, not all users are in html/xml/cssthings.

I understand this, my point is more that enabling everywhere can potentially cause false positives and noise where color previews are not desired. I work in other things than HTML/XML/CSS as well, but I don't like color previews popping up everywhere, but if I do want them, I like that I can bring them up on demand.

I just want a convenience way to pickup/choose colors in some setting files, and there was like no quick tooltips to do that on the home page. Like quickly enable it, use it, done, disable it :D

Everybody is different, and I'm not trying to discourage you from doing what you want, but just mentioning that is probably not the recommendation path I want to send people down by default. You may like having them enabled everywhere now, but find that it can get annoying in the future, or maybe you'll always like it, but I think in the docs, we will recommend a more conservative approach.

from colorhelper.

Mark-Joy avatar Mark-Joy commented on June 10, 2024

Agreed!! I understand your point.
The thing is as a new user I dont know what I can do and can not do with your package.
I have to read through the document: https://facelessuser.github.io/ColorHelper/usage/
Even then, there was no mention about command palette to enable color helper in some random files Color Helper: Override View's Scanning
Hence this topic was created to help some random guys save some time facing the same issue.
Cheers!

from colorhelper.

ArtJuice avatar ArtJuice commented on June 10, 2024

Hi.
Is there any way to turn on Override View's Scanning for all files by default in config?
Thx

from colorhelper.

facelessuser avatar facelessuser commented on June 10, 2024

Override View's Scanning is view specific command that overrides a view on demand, so it cannot be applied globally.

Currently, there is no global way to force all views to show color previews except what is suggested in the OP. When doing what is done in the opening post, you don't get too much language-specific control, so it'll just show previews everywhere that are not found in strings or comments, but you can remove that requirement, or come up with a better generic rule if desired as well.

If there is a file type I prefer to have colors in all (or most of) the time, I simply add a new rule for that file type. If you truly want colors in all files, regardless of the language, then enabling scanning in generic via override is what you want. Then you can disable via Override View's Scanning only when you want.

from colorhelper.

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.