Giter Club home page Giter Club logo

vscode-todo-highlight's People

Contributors

alkatar21 avatar buuug7 avatar canrau avatar dependabot[bot] avatar elazarcoh avatar farwyler avatar goyalyashpal avatar jgclark avatar jonz94 avatar nschmeller avatar tyriar avatar yuriykis avatar zerefdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vscode-todo-highlight's Issues

Add complete settings autocompletion for before and regex

While regex shows up in the list, before does not.
I don't know if these can have more than the one argument?

  • If not I would also suggest omitting the curly braces with an extra argument.
  • If there are more than one, autocompletion would be desirable here as well.

Quick way to create highlights from editor selection

Hi,
I would love to have something similar to notepad++, that can create a syntax highlight by right-clicking on a selection and choosing a style (See image below).

I can try to create a PR for it, if you'd likely accept it.

image

ENHANCEMENT - specific tab for listing TODOs instead of output terminal

It would be easier if we could navigate through the TODOs and view the code at the same time.
With the current configuration, we can't because either we have the ouput terminal opened, either we have the code, not both.

You could inspire yourself from this VSC extension I was using before, and which is doing this great.

It offers some tools like expand / collapse tree, filter, refresh, group by tag and especially 3 different views, shown in the screenshots below (tree, flat tree and list).

I'm currently using your extension + the one I linked, but it would be better if these two features were in only one extension.

image
image
image

Pattern not working

I am using the regex pattern option exactly as per the example, but it doesn't seem to work.
When I only specify a regex, it doesn't match anything. When I add the text, it will match, but then it doesn't respect the regex.

The example in the readme specifies both a text and regex, but that doesn't seem to be the way.

image

Compare:

image

See how DENOTE: is still matched.

When displaying TODOs in Problems view, make then INFO level messages

I like to display my TODOs in the Problems view, and obviously as the setting to enable that is "Enable Diagnostics", that was never the primary focus of this extension. However, they're not errors. When they're tagged as errors, I can't filter them without hiding the serious issues I need to deal with.

It would be great to either always display them as Info, or to make the level configurable. I'm not sure if this is related to #1 or not. I would have thought #1 was accomplished with "Enable Diagnostics", so maybe I'm actually requesting what you've already proposed.

RegEx pattern of the "NOTE" example ist not working for me.

Hi Jonathan,

first of all, thank you for continuing this extension!

In my case (VS Code1.47.2 and TODO Highlight 1.21) your example for the "NOTE" regex is not working (nothing gets highlighted at all).

 "regex": {
       "pattern": "(?<=^|\\\\s)NOTE[:]?" // in this example, highlight `NOTE:` with or without the `:` and that's not part of another word.  (I.e.: The above will highlight 'NOTE' but not the "note" in 'SIDENOTE').
        /**
         * NOTE: remember to escapse the backslash if there's any in your regexp (using \\\\ instead of single backslash)"
         * Positive lookbehind (`(?<=...)`) is only supported in Node.js v9 and up.
         * If your VSCode version is built on an earlier version the example above may not work.
         * bynoted byNOTE NOTEing NOTE:
         **/
},



Like with Textmate rules two backslashes are sufficient, better: exactly what is required - at least on my side (the first one is needed to let the 2nd one survive the processing before the rule is passed to the regex engine.
Additionally, the "[:]?" part will not exclude "NOTEing" from being marked because it doesn't differentiate any further the case where the terminal colon is missing.

Here ist what's working for me.

"regex": {
  "pattern": "(?<=^|\\s)NOTE[:]?(?!\\w)"

Issues with regex in todohighlight.keywords

Following the example configuration on the project homepage, I created the following custom config:

"todohighlight.keywords": [
			{	
				"regex": {
					"pattern": "(<h2>.*?<\/h2>)"
				},
				"color": "white",
				"backgroundColor": "#8A4400",
				"isWholeLine": false
			},
			{
				"regex": {
					"pattern": "\\(screenshot: ([^)]+)\\)"
				},
				"color": "White",
				"backgroundColor": "Red",
				"isWholeLine": false
			}
		]

both regex are ignored. The expressions are not wrong, they simply are not picked up.

However, if I use this variant, everything works as expected:

"todohighlight.keywords": [
			{	
				"text": "test1",
				"color": "white",
				"backgroundColor": "#8A4400",
				"isWholeLine": false
			},
			{
				"text": "test2",
				"color": "White",
				"backgroundColor": "Red",
				"isWholeLine": false
			}
		]

I'd really prefer to specify a series of regex rather than an endless list of strings, so any help would be greatly appreciated.

Thank you

Explain the difference between higlighting and listAnnotations better

For me it was not immediately clear from the README that higlighting and listAnnotations do not work the same way and so I had expected at first that everything that is higlighted also appears in the list.
While the former works in all files, even in the settings, listAnnotations respects todohighlight.include and todohighlight.exclude and is more or less an own independent function.

I would suggest the following options:

  • In the README, emphasize more strongly that these are 2 more or less different features. Maybe also mark the options accordingly.
  • higlighting also respects these settings.
    Thus the extension could start in a further step only if a corresponding file type is called and improves thereby also the VSCode startup time.

Language Specific keywords does not work

The example Language Specific keywords of the doesn't work in version 2.0.4

"[markdown]": {
        "todohighlight.keywords": [
            {
                "text": "BRACKETS:",
                "color": "#000000",
                "backgroundColor": "pink",
                "regex": { 
                    "pattern": "(?<=\\{)[^\\}\\n]+(?=\\})" // highlight things in {ss} but not including line breaks
                }
            }
        ]
    }

I could look into it, but I'm not sure if that's a good idea if @elazarcoh is done with the PR to transfer this extension to TS.

Is it not possible to change the Font size to have padding around the text?

Hi just,
as a proposal for the default style for this project.

I played around with a lot of different configurations and with darkmode vscode this one looks the best IMHO but it looks only best if there is space around the keywords.

settings

  "todohighlight.isCaseSensitive": true,
  "todohighlight.keywords": [
    {
      "text": "TODO",
      "color": "#eeeeee",
      "regex": {
        "pattern": ".?TODO.?"
      },
      "backgroundColor": "#4b8d6b",
      "border": "1px",
      "borderRadius": "3px",
      "fontStyle": "oblique",
      "letterSpacing": "0px"
    },
    {
      "text": "FIXME",
      "regex": {
        "pattern": ".?FIXME.?"
      },
      "color": "#eeeeee",
      "backgroundColor": "#ff6666",
      "border": "1px",
      "borderRadius": "3px",
      "letterSpacing": "0px"
    },
  ],

Is it possible to mayme let the font of the keywords appear smaller so the backgrounds looks better?
Did not find anything in:
https://code.visualstudio.com/api/references/vscode-api#DecorationRenderOptions

result

Screenshot 2023-08-17 at 15 34 57

Border color only

This is a problem I've had with the original extension for a long time. I'd like the border of a line to be colored, but keep the original text color.
Right now the text becomes white when I turn the text color off with a border.

Can this version help there?

[Breaking] Enhancement: Simplify the regex property

To answer #35 (comment) I propose the following roadmap:

  • Implement a solution that allow both, the old and the new syntax, but only autocompletion for the new syntax in a PR or a commit that mention this issue.
  • Unfortunately you can't write a deprecation warning ("markdownDeprecationMessage": "...",) to the pattern property itself according to VSCode autocompletion. But I would write one to todohighlight.keywords saying that the property is simplified to regex: "..." and mention this issue. (I don't know how aggressively it will be pointed out then, but hopefully a few users will get it that way.)
  • Also, put a note at the top of the readme pointing this out and adjust the readme.
  • You can pin issues on Github. I would pin this issue, so that it is seen more quickly.
  • Release that Version.
  • Depending on how aggresive the deprecation warning points out, I would wait a few months. Thus, many can already switch the syntax.
  • Finally remove support for the old syntax in the code. Remove the deprecation warning. Maybe add another note to the readme.
  • I don't know what versioning scheme is followed here, but for breaking changes I would increase to 3.0.0.
  • Release that Version and that closes this Issue.

exclude doesn't exclude settings.json

todohighlight.exclude option doesn't seem to recognize settings.json. Screenshot shows what I mean. I don't want the highlight text highlighted in the settings file, just the raw text.

image

Default settings not appearing on installation?

I think from interactions in the last few days, that I've identified something that's unhelpful for new users: there are no default settings loaded into the user's settings, or otherwise applied.
I think #31, #52 and possibly #69 show elements of this.
I'm travelling so can't investigate further right now, but I think #31 (comment) is relevant.

Support specifying a user between "TODO" and ":"

Hello,

thank you for taking over the development of this extension.

My C++ linter expects a TODO annotation to specify a user:

// TODO: gather params etc...

will result in an error:

Missing username in TODO; it should look like "// TODO(my_username): Stuff." [readability/todo] [2]

would it be possible to support highlighting annotations that have a username between the annotation and the ":" between parenthesis ?

Thank you

Adopting Multi Root Workspace APIs

Is there any plan to support multi root Workspaces?
In our Projekt it's really nice to have multiple Folders in one workspace. Most of them have their own .vscode Folder with a settings.json.

I have a few keywords that i only want to highlight in one folder -> to do so i edited the settings.json in this folder. Sadly these keywords don't seem to be recogniced... if i put the same keywords in the User settings.json they work just fine... i think it could be a problem with the API Change linked below, but i'm not so sure about that.

https://github.com/microsoft/vscode/wiki/Adopting-Multi-Root-Workspace-APIs#do-i-need-to-do-anything

BUG - Before content text duplicated

When editing settings of the extension or some other actions, it may duplicate the Before / After content text.

In my example, I was using 1 emoji, then I edited the configuration so I replaced by the emoji by "a", and I got 3 emoji + "a".

image
image

I take this opportunity to say that we need to focus a view to get the keywords matched, updated and stylized.
Could be nice if it does without having to do it manually.

Include and exclude options don't work

Even if specifying todohighlight.include = [] and todohighlight.exclude = [ "**/*.* "], keywords still get highlighted in all files.

Maybe the issue is the fact that the inclusion and exclusion is not directly handled in the function updateDecorations in src/extension.js.

Perhaps adding something like this into the updateDecorations function will work:

// the function isFileNameOk checks for the include and exclude settings
if (!isFileNameOk(activeEditor.document.fileName)) {
    return;
}

Enhancement: Improve Settings autocompletion and simplify regex in settings

After the release of version 2.0.4, I took a closer look at the extension.
Thanks here for the quick reply and the improvements.
Unfortunately, I currently have no time to set up JS myself and to learn to fix and improve things myself. Maybe in a few months time.

#29 was probably not really understandable and I had also made some wrong assumptions, therefore now again in more detail:
I understand now how it is done with the styles. In todohighlight.defaultStyle and also in todohighlight.keywords DecorationRenderOptions are used for the style .
Additionally in todohighlight.keywords there is text and regex which is defined by itself.

With this knowledge it is true that {...} for "before" cannot be removed.

Currently, the autocompletion for this looks like this:
grafikgrafik

How could the completion be improved for the styles?

We could of course define all parts from DecorationRenderOptions in the settings.json. But I would suggest to extend the documentation and show only the most important options as now.
One possibility would be to extend the following descriptions and indicate that all options from DecorationRenderOptions are possible:

"description": "Default style for all customized keywords",
"description": "An array of keywords, and their CSS to customise how they look. Any CSS color identifier is valid, plus a few others ...",
Something like:

"markdownDescription": "... Further options can be found [here](https://code.visualstudio.com/api/references/vscode-api#DecorationRenderOptions).",

regex property improve or simplify

A quick fix is to fix the settings.json, because currently regex is not defined correctly. The following should work, but would need to be tested:

"regex": {
+   "type": "object",
-   "pattern": {
-       "type": "string",
-       "description": "The RegEx pattern to use for matching instead of the text value.REMEMBER to escape the backslash if there's any in your regexp (using \\\\ instead of single backslash)"
+   "properties": {
+       "pattern": {
+          "type": "string",
+          "description": "The RegEx pattern to use for matching instead of the text value.REMEMBER to escape the backslash if there's any in your regexp (using \\\\ instead of single backslash)"
+       } 
    }
},

But since regex is defined by us, I would suggest to simplify it permanently, since a new object for a single parameter makes little sense. This would then simplify in settings.json as follows, but also needs some code adjustments:

"regex": {
-   "pattern": {
-       "type": "string",
-       "description": "The RegEx pattern to use for matching instead of the text value.REMEMBER to escape the backslash if there's any in your regexp (using \\\\ instead of single backslash)"
-    }
+   "type": "string",
+   "description": "The RegEx pattern to use for matching instead of the text value.REMEMBER to escape the backslash if there's any in your regexp (using \\\\ instead of single backslash)"
},

Make the include setting opt-in, and enable the extension to work globally otherwise

As mentioned in #69, the include and exclude settings weren't actually wired up previously, so the default behavior was to enable the extension globally. IMO, include should be undefined or an empty list by default - which would enable the extension globally1. Then if the user wants, they can limit which files types the extension considers by putting file types (or languages as mentioned in this comment) in the includes setting. This makes more sense than than shipping the extension with a predefined list of (mostly web-dev related) file types that it works with and forcing users to add the file types that are specific to how they use vscode.

There are a couple reasons I think this is an improvement:

  • This was the default behavior (unintentional or not) prior to the recent changes, and implementing this will revert back to that behavior for everyone that didn't add the include option to their settings, but while still keeping the benefit of actually having the setting wired up for those that want to use it.
  • It allows users to enable the extension globally without using **/*, as the readme explicitly warns against2, or, rather absurdly, adding every file extension they are likely to work with
  • As mentioned above, the defaults seem to be aimed primarily at web-dev, but vscode is being used more and more as a general purpose text editor/IDE that it's not unlikely some one programming in python or go installs the extension just to see nothing happen. (this would be made more confusing by #71 and not seeing a setting to modify if they edit their settings with json)

Footnotes

  1. It probably makes sense to have a default exclude list to avoid slowing down scanning large files that are not relevant

  2. I'm making the assumption that the performance impact mentioned of using **/* is different than whatever the extension was doing before the recent changes

Do not highlight Golang `context.TODO()`

Hi! I just started using this extension after noticing that the original version isn't maintained anymore, it looks great so far. Here's a crosspost of an issue I filed at the original repo:

In the Golang context package, context.TODO() is the catch-all use case. This TODO should not be highlighted.

Bigger picture, should any TODO that looks like a function be highlighted?

Not sure what a good way to implement this would be, but I figured it's worth flagging.

Not working in Python code

I'm using this extension for some time now. It works fine in .js and .php files, but shows no effect in .py files. I think it worked before, but I'm not writing Python often so I can say when.

The current version in 2.0.8 with VSCode 1.77.3 on Windows.

Open VSX registry support

Please add your extension to open-vsx registry to be able install extension into vscodium.
I know that i'm able install extension from VSIX file, but it would be very nice to have availability install extension more "native" way

[Feature] Add support to load settings from a specific file too.

Hi, like title, add a way to use a custom file to load settings.

like: todohighlight.json, todohighlight.rc, todohighlight.js ...etc, in the root path.

always should have support for settings.json

This way the user will have 2 options, custom file and vscode configuration to load the configuration.

Use Settings UI

A user has suggested it would be ideal if some of the settings could be controlled by the main VSC settings UI.
I think this will be too difficult for the advanced cases, but it might be possible for a simple list of keywords.

Bug: listAnnotations does not reset after Settings update

I had added "**/*.py" to "todohighlight.include" and the results were displayed correctly by listAnnotations.
If you remove the entry in the settings and run listAnnotations again, the ui is correctly set to 0 ( grafik), but the info is still displayed in the output window and the info message "No results" is not shown.
This cannot be changed by restarting VSCode. Running listAnnotations has the same effect as before the restart.

I think that maybe in the following function at the right position only the following line is missing:

workspace.onDidChangeConfiguration(function () {

window.outputChannel.clear();

Since I can't test it, I didn't create a pull request.

List highlighted annotations for open editors

Low priority, but might save some people from thinking the extension is broken or digging through settings like I did.

Right now, the List highlighted annotations only works when you have a folder open (and probably a workspace but I haven't tried that). When you are working on individual files in one or more editors, the command returns 0 results. In lieu of this, it might be beneficial for the response message to mention this caveat. Currently, it simply returns: "No results" even though the file I'm looking at clearly has highlights.

Hope that makes sense, aside from that minor thing, loving this extension!

"todohighlight.keywords" is not working

The extension is only highlighting todohighlight.keywordsPattern and using the default style. here is my configuration

//Todo highlight ...
    "todohighlight.isEnable": true,
    "todohighlight.isCaseSensitive": true,
    "todohighlight.keywords": [
        "DEBUG:", // without further details, this will use the defaultStyle
        "REVIEW:", // as will this
        {
            "text": "todo:",
            "before": {
                "contentText": "⚡" // can add text before or after the highlight
            },
            "color": "red",
            "border": "1px solid red",
            "borderRadius": "2px", //NOTE: using borderRadius along with `border` or you will see nothing change
            "backgroundColor": "rgba(0,0,0,.2)"
        },
        {
            "text": "note:", // this is further refined by the regex pattern below
            "color": "#ff0000",
            "backgroundColor": "yellow",
            "overviewRulerColor": "grey",
            "before": {
                "contentText": "💡💦" // can add text before or after the highlight
            },
            "regex": {
                "pattern": "(?<=^|\\\\s)note[:]?" // in this example, highlight `NOTE:` with or without the `:` and that's not part of another word.  (I.e.: The above will highlight 'NOTE' but not the "note" in 'SIDENOTE').
                /**
                    * NOTE: remember to escapse the backslash if there's any in your regexp (using \\\\ instead of single backslash)"
                    * Positive lookbehind (`(?<=...)`) is only supported in Node.js v9 and up.
                    * If your VSCode version is built on an earlier version the example above may not work.
                    * bynoted byNOTE NOTEing NOTE:
                    **/
            },
            "isWholeLine": false
        },
        {
            "text": "topic:",
            "color": "green",
            "backgroundColor": "rgba(0,0,0,0)", // INFO: setting the last parameter to zero (alpha channel) disables the background colour
            "border": "none",
            "before": {
                "contentText": "🚀" // can add text before or after the highlight
            },
            "isWholeLine": false
        },
    ],
    "todohighlight.keywordsPattern": "todo:|fixme:|pop:|note:|topic", //highlight `TODO:`,`FIXME:` or content between parentheses
    "todohighlight.defaultStyle": {
        "color": "white",
        "backgroundColor": "#9930ff",
        "cursor": "pointer",
        "borderRadius": "3px",
        "padding":"1px",
        "isWholeLine": false,
        //other styling properties goes here ... 
    },
    "todohighlight.include": [
        "**/*.js",
        "**/*.jsx",
        "**/*.ts",
        "**/*.tsx",
        "**/*.html",
        "**/*.php",
        "**/*.css",
        "**/*.scss",
        "**/*.md",
        "**/*.mmd",
        "**/*.markdown",
        "**/*.mdown",
        "**/*.txt",
        "**/*.rb",
        "**/*.go",
        "**/*.dart"
    ],
    "todohighlight.exclude": [
        "**/node_modules/**",
        "**/bower_components/**",
        "**/dist/**",
        "**/build/**",
        "**/.vscode/**",
        "**/.github/**",
        "**/_output/**",
        "**/*.min.*",
        "**/*.map",
        "**/.next/**"
    ],
    "todohighlight.maxFilesForSearch": 5120,
    "todohighlight.toggleURI": false
}

and this is how it looks:
image

Mark this as a successor

Hi,

thanks for taking over maintaining this extension.

When preparing the VS Code extension recommendations for my team, I ran into the issue of two seemingly identical versions of this extension existing on the Visual Studio Marketplace. When searching for it in VS Code, the outdated version is on place one and this one on place four, so I am pretty sure people are still installing the older version, certainly in my team as well.

On a first glance, this version seems just like a copy of the unmaintained original, also, it has not been forked via the GitHub fork feature, so no connection is shown there.
Only when you scroll down in the README.md, you can find some information about this being a fork and the reason behind it. On VS Marketplace you can not see any information about that at all.

Had I been in a hurry, I would have installed the outdated version as well, as a consequence.

To contribute to others not doing the same and promoting this version, I opened Issue #187 on the outdated repository, asking one of the contributors to update the README.md there, so that it points to this repository.

In addition, I would suggest for the README.md of this project, as well as the VS Marketplace site to shorten the history chapter and move it to the top, e.g. like this:

This extension was started and maintained by wayou until 2018. jgclark then picked it up in mid-2020, as the original extension was no longer maintained. See CHANGELOG.md for more details.

Cheers

Highlighting colors are greyed out

When changing to a new tab, highlighted words are the correct color. But, after a short time the color is greyed out for all words.

An example is probably better:
After a short time (really short, I cannot take a picture before it changes :( ):
image

The before, would be with all the word with the same highlighted color than the colons

Integration failure with VSCode-Remote

When using in a vscode remote session, the output from VSCode-TODO-Highlight doesn't seem to format well for making the links (successfully) clickable. Representative screenshot attached:

image

I suspect the actual problem is VS Code expects filename[:line[:column]] format when a full URL path is used, instead of the filename#line format which is possibly supported only when using a local filesystem path? But that's just a theory, which needs to be tested.

Suggestion: try outputting the filename[:line[:column]] format instead, see if it works in both local and vscode-remote contexts.

Extension stopped working with v2.0.8?

The extension appears to have stopped working.

image

$  code --version
1.77.3
704ed70d4fd1c6bd6342c436f1ede30d1cff4710
x64

There's no log message in the extension console.
I'm not sure how to provide more information.

Troubles setting up a regex

I want to highlight all occurences of words like @ToDo or @Note in my code, but I have troubles doing so and I don't really know what's the issue. I added the C++ files to the files list & the extension works fine if instead of regex I just write "text": "@Note". Here's my settings.json:

    "todohighlight.isEnable": true,
    "todohighlight.keywords": [
      {
        "text": "Notes",
        "regex": {
          "pattern": "@\\p{Lu}\\w*:?"
        },
        "color": "#dbb302",
        "backgroundColor": "rgba(0,0,0,0)"
      }
    ],
    "todohighlight.include": [
      "**/*.js",
      "**/*.jsx",
      "**/*.ts",
      "**/*.tsx",
      "**/*.html",
      "**/*.css",
      "**/*.scss",
      "**/*.php",
      "**/*.rb",
      "**/*.txt",
      "**/*.mdown",
      "**/*.md",
      "**/*.cpp",
      "**/*.hpp",
      "**/*.c",
      "**/*.h"
    ]

I cannot set different background colors

I tried to set different backgrounds on todohighlight.defaultStyle among here the null ones like "transparent", "none", "rgba (0,0,0,0)" and the colored ones but as you can see the result always remains the same. It only changes when I change the settings for the specific word.

Screenshot 2022-10-29 at 10 42 53

Extension isn't working

I can't get this extension to work in VS Code v1.80.1 (the latest release as of today). I've tried every troubleshooting step I can think of, including:

  • Enabling the extension
  • Restarting VS Code
  • Checking extension settings
  • Checking for conflicting settings in settings.json
  • Disabling all other extensions
  • Confirming that the language modes are correctly set
  • Reinstalling the extension
  • Testing TODO highlighting in several different .js and .html files

Show all defaults in the config

The default values of todohighlight.defaultStyle and todohighlight.keywords are not taken over into the config when you select them (so they are not in the default config). At least VSCode settings do. Currently you have to look them up in the code. Maybe they are just missing in the package.json?
(I am not sure if they could then be removed from the code, although that could probably be another Issue).

Latex is not supported

In Latex comments are started by %.
This is not handled in your extension, please add the support.
Thanks.

Exclude files in .gitignore

Don't search "TODO" in the files specified in .gitignore.
Add a setting to choose is user want follow or not follow rules in .gitignore is a good possibility.

[Feature] Put all TODOs onto Problem view

Have an option that when running the List Annotated Highlights command, add results into the Problem tab, not the Output tab.
Alternatively, have a new setting isProblem per highlight, that automatically adds them to the Problem tab.

Limit the pattern matching to comments

Is there a way to do the pattern matching only in the comment without adding it in the regex? An option in the setting could be nice, this could use the language syntax to detect comment section and perform the regex matching.

If there is already a solution I didn't find one that could work on all language.

Dark/Light Theme mode: Define keywords color / backgroundcolor depending on day/night mode?

Hello

thank you for creating release 2 of this plugin and sharing your great work!

Could you please think about offering support for dark/light (or day/night) themes and allow us to define colors depending on it?
Somethin like that:

{
    "text": "### …",
    "regex": {
        // this is a 'TODO Highligt' bug: Regex for "start of line": ^ does not work, 
        // probably because it uses wrong Regex option 'multilne / single' line parsing
        "pattern": "(?<=(?:\\r\\n?|\\n)\\s*)(#{3}(:|\\s).*)(?=\\r\\n?|\\n)?"
    },

    // keep the backward compatibility
    "color": "red",
    "backgroundColor": "rgba(245, 39, 145, 0.09)",

    // The new dark/light mode
    "LightModeColor": {
      "color": "",
      "backgroundColor": ""
    },
    
    "DarkModeColor": {
      "color": "",
      "backgroundColor": "",
    }
},

Thanks a lot, kind regards,
Thomas

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.