Function overloading in macros #176
ristomatti
started this conversation in
Ideas
Replies: 1 comment 10 replies
-
Not only that, it would be against the design. It is currently allowed to redefine macros, like:
So, it would be hard to distinguish between a redefinition and a definition of an overload. I am thinking about adding a builtin macro
I am still thinking about a nice solution for your second sample. |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@houmain Would it be a lot of work to support the same macro with varying amount of parameters? Example:
The idea came from the fact I've found my macros
Tap
andHold
great ways to make the config more readable and to allow fine tuning the value for all the mappings in one place. But in a few situations I need the value to be longer, but I couldn't come up with a good name. It then occurred to me that using a multiplier would be a even better to have the value relative to the most often needed one.Currently I've just used
HoldX
, but I remember having a similar need on some macros that execute commands earlier on. For instance it would be nice to have this...rather than this:
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions