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

Can rulesets be exposed as commands? #7

Closed
ebullient opened this issue Feb 12, 2022 · 3 comments
Closed

Can rulesets be exposed as commands? #7

ebullient opened this issue Feb 12, 2022 · 3 comments

Comments

@ebullient
Copy link

I would love to be able to add running a regex ruleset to a macro that I have, but there is no way for me to invoke the plugin in a way that would specify the ruleset (already). You don't need to add icons or anything, but exposing configured rulesets as commands would give a lot of flexibility to use rulesets with other plugins (macros) or directly from slash commands..

@No3371
Copy link
Owner

No3371 commented Feb 13, 2022

The update is out now. You need to enable it in config, because it seems an anti-pattern of Commands.

I was kinda confused then tried to get an idea about what exactly do you want by visiting your profile, figured out that you are trying to make this work with Customizable Sidebar, right?

Though it should be intuitive enough, noted that the customized sidebar seems works by keeping command Id around, while I am using ruleset name (file name entry in index file) as Id, this means the customized sidebar button will stop working if the command does not exist. (order changed, quick rulesets decreased...)

@No3371 No3371 closed this as completed Feb 13, 2022
@ebullient
Copy link
Author

The update is out now. You need to enable it in config, because it seems an anti-pattern of Commands.

I was kinda confused then tried to get an idea about what exactly do you want by visiting your profile, figured out that you are trying to make this work with Customizable Sidebar, right?

I was going to add it to an existing macro (that I invoke w/ customizable sidebar)... or invoke it using a / command. Thanks!

@ebullient
Copy link
Author

/ command is already epically better. Thank you for adding this!

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