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

Add some way to hide commands from the "Run a macro" selection box #3

Open
t-gehring opened this issue Aug 14, 2019 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@t-gehring
Copy link

As a macro can run other macros, it can be helpful to define "utility" macros, not intended to be run on their own but instead to perform common macro steps that would otherwise be duplicated between various macros. It would be useful to have a way to prevent these utility macros from showing in the "Run a macro" box, to reduce visual clutter, and to prevent them accidentally being run individually.

I would suggest something like a prefix on the macro name, such as "_." or "hidden." or "util.", as this is easy to add into the settings without adding an extra layer of JSON hierarchy.

@jeff-hykin
Copy link
Owner

Yeah I think an _ at the front of the name would work well for this. I'll add a one time warning encase people do it on accident.

@jeff-hykin jeff-hykin added the enhancement New feature or request label Aug 15, 2019
@jeff-hykin
Copy link
Owner

It might be nice to have a way to define JavaScript functions that are accessible to all of the macros too since there could be a lot of repeated code there.

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

No branches or pull requests

2 participants