Giter Site home page Giter Site logo

Default toggles addition about toggler-vscode HOT 1 CLOSED

ppo avatar ppo commented on June 22, 2024
Default toggles addition

from toggler-vscode.

Comments (1)

HiDeoo avatar HiDeoo commented on June 22, 2024

Thanks for your feedback, took me a while to get to it but it's definitely super appreciated. 🙌

I'll try to address each of your points that require a response.

Can you have different lists relative to the current editor/programming language?

Yes, language-specific custom toggles have been added in v0.2.0. Here is the Visual Studio Code reference on how to configure them: https://code.visualstudio.com/docs/getstarted/settings#_language-specific-editor-settings

  • ["and", "or"] I think this is a good addition, even outside of programming.

  • ["null", "undefined", "NaN", "None", "nil"] I think I would prefer to avoid mixing up different languages in the same toggles and I definitely to not wish to maintain that kind of list myself so if this is something a developer wish to have, I think it's fair to ask them to maintain their own list (either global or language-specific).

  • ["map", "reduce", "filter"] I think this kind of change is not so common to be worth adding to the default list.

  • ["thead", "tbody", "tfoot"], I think this is a good addition.

  • ["dark", "light"] Excellent idea.

  • Log levels + success: I was thinking this was a good idea but after thinking about it and trying to find common list, I think it's just impossible to have a list that would be useful for everyone with so many different strategies out there. We'll either have too many items or not enough. I think it's better to let the user maintain their own list.

  • ["x", "y", "z"] Good idea.

  • ["start", "stop", "end", "pause"] I like the idea but I think having ["start", "stop", "end"] is what I would most expect.

  • ["left", "right", "middle", "center", "justify"] I think the left / right toggle should not be expanded and let developers maintain their own list if they wish to have more options based on their language.

  • ["head", "body", "foot"] This one was mostly intended for HTML so I think keeping it as is is the best option.

  • ["row", "col", "column"] This sounds a bit too specific to me.

  • ["minor", "major", "patch"] Good idea.

  • ["if", "else", "elseif", "elif", "elsif"] I would prefer to keep it simple and let developers maintain their own list if they wish to have more options based on their language.

  • Ordinal numeral: I definitely think this is way too specific and I've never seen this occurred so often that it would be worth even using a toggle for it. If a developer really needs it, they can maintain their own list.


Based on your feedback, I've updated the default list to include the changes I've agreed with and released version v0.6.0.

I'm totally conscious that this feels a bit arbitrary, but without many more feedbacks from many users, I try to keep the list as simple as possible while still being useful to most people and it can be hard to find the right balance (that's also why a main goal of the extension is to let users maintain their own list).

Thanks again for your feedback.

from toggler-vscode.

Related Issues (11)

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.