Skip to content
New issue

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

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

Already on GitHub? # to your account

Feature Request: Add a toggle button for macros #3971

Open
eljokun opened this issue Jan 31, 2025 · 6 comments
Open

Feature Request: Add a toggle button for macros #3971

eljokun opened this issue Jan 31, 2025 · 6 comments

Comments

@eljokun
Copy link

eljokun commented Jan 31, 2025

Describe the feature and the current behavior/state

I'm not familiar with there being an option to disable a macro without deleting it for now, and it would be great to disable a macro so as not to use it while working on different documents, and so on, by means of a toggle enable/disable button added to the macros tab.

Who will benefit with this feature?

Practically everyone that wants the convenience of disabling a macro temporarily.

@octaeder
Copy link
Contributor

octaeder commented Jan 31, 2025

Just to clarify: How do you execute your macros? I mean, you just could not use those you don't need?

Notes:
This is espacially interesting for macros executed by triggers. To deactivate these you have to remember and remove the trigger,
Deactivated macros should not appear in the main menu Macros.
Should a macro always be executed by pressing the Execute button or only when it is activated?

@eljokun
Copy link
Author

eljokun commented Jan 31, 2025

Just to clarify: How do you execute your macros? I mean, you just could not use those you don't need?

Notes: This is espacially interesting for macros executed by triggers. To deactivate these you have to remember and remove the trigger, Deactivated macros should not appear in the main menu Macros.

Exactly. I use the ?inEnv trigger to place ^{} and _{} automatically in equations, which is especially useful when i'm working in microelectronics, having to write $\huge V_{\text{CE2}_{\text{SAT}}}$, for example, but becomes annoying when i have to do multiple single-character subscripts, like $\huge \Pi_T (t)$ or

$$\large I_1 R_1 C_2 R_7 L_2 - \dfrac{R_f}{R_i}$$

and so on... It would be nice to have this in general! Like some sort of a "suspended" macro

@octaeder
Copy link
Contributor

Thanks for pointing out this. It could be usefull to have an action on folders (in list to the left) which (de)activates all macros in this folder and all subfolders. Then you could create macros per document or so in a folder.

@eljokun
Copy link
Author

eljokun commented Jan 31, 2025

Thanks for pointing out this. It could be usefull to have an action on folders (in list to the left) which (de)activates all macros in this folder and all subfolders. Then you could create macros per document or so in a folder.

Sure! But i believe a better approach would be to add a tick box to each macro definition as a toggle, so you can switch them on and off accordingly instead of having to define them per document.

@octaeder
Copy link
Contributor

The idea is that the action sets or unsets the option on each macro. So, this is compatible with what you want to have.

@octaeder
Copy link
Contributor

@sunderme please add label Enhancement to this issue.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants