Skip to content

Feature request: Language/Extension filters #18

Description

@whinee

Hello, first of all, I just wanna say that this is such a cool extension! I have been looking for something like this far longer than I'd like to admit. Anyways, I saw this extension here.

Anyways, back to the topic. I request a language/extension filter. As I only want the vertical lines to appear when editing python files.

I don't really have an idea on how to implement this, sorry. I have a suggestion on how to structure this on the settings.json though.

This is an example of the current config I use:

    "editor.rulers": [
        {
            "column": 80,
            "color": "#c7aef8"
        },
        {
            "column": 88,
            "color": "#8c51ff"
        },
    ],

Now, my suggestion is to add a language and extension filter which could be added to the config like so:

   "editor.rulers": [
       {
           "column": 80,
           "color": "#c7aef8"
       },
       {
           "column": 88,
           "color": "#8c51ff",
           "filterLanguageRegex": "python",
           "filterFileRegex": "\.py",
       },
   ],

Now, as the name of the added option suggests, they are both regexes. I got the inspiration from this extension which uses that exact filter options.

Thanks for your consideration, and have a good day!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions