davraamides / todotxt-mode

MIT License
59 stars 12 forks source link

Markdown decoration patterns are not applied #44

Closed jowitte closed 2 years ago

jowitte commented 2 years ago

I tried changing the regex pattern to use for MD tasks: Todotxtmode: Markdown Decoration Begin Pattern but changes do not seem to have any effect.

davraamides commented 2 years ago

Can you paste in the expression you tried so I can test it?

On Nov 27, 2021, at 7:23 AM, Jochen Witte @.***> wrote:

 I tried changing the regex pattern to use for MD tasks: Todotxtmode: Markdown Decoration Begin Pattern but changes do not seem to have any effect.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

jowitte commented 2 years ago

I just tried to change the name of the section:

            "todotxtmode.markdownDecorationBeginPattern": "^#+\\s+Todos\\s*$",
davraamides commented 2 years ago

Can you try restarting VS Code? While that shouldn't be required, I just tried this and it looks like that regex pattern is being cached in memory so a change to the user settings isn't seen until a restart.

And also make sure your Markdown file is named in a way that matches the markdownFilePattern setting.

On Sat, Nov 27, 2021 at 8:22 AM Jochen Witte @.***> wrote:

I just tried to change the name of the section:

        "todotxtmode.markdownDecorationBeginPattern": "^#+\\s+Todos\\s*$",

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/davraamides/todotxt-mode/issues/44#issuecomment-980635493, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOOZGNGVMQOLAX5J6WPF2LUODSSTANCNFSM5I4F7VHA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

jowitte commented 2 years ago

Solved the issue, thanks.