Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional custom actions #33

Open
alexey-zaharchenko opened this issue Mar 13, 2025 · 2 comments
Open

Conditional custom actions #33

alexey-zaharchenko opened this issue Mar 13, 2025 · 2 comments

Comments

@alexey-zaharchenko
Copy link

Is it possible to add test property to custom actions, similar to buildin actions? I want to show task related custom options only on lines with tasks

@zhouhua
Copy link
Owner

zhouhua commented Mar 13, 2025

Adding this feature is possible. The plugin internally uses regular expressions to determine whether an action should be displayed. I was concerned that users might find regular expressions difficult to understand, so I didn't directly expose this feature.

@zhouhua
Copy link
Owner

zhouhua commented Mar 13, 2025

Try downloading the latest version; I've added this feature. For your needs, you can fill in the regular expression input box with: ^\s*[*-]\s\[[ x]\]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants