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

Macro keys #878

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Macro keys #878

wants to merge 1 commit into from

Conversation

Julow
Copy link
Owner

@Julow Julow commented Jan 18, 2025

Add "macro" keys that behave as if a sequence of keys is typed.

Macro can be added to custom layouts or through the "Add keys to the keyboard option".
The provisional syntax is:

:macro symbol='V':ctrl,v
:macro symbol='CA':ctrl,a,ctrl,c
:macro symbol='<<':ctrl,backspace

The key syntax is changed slightly to make it delimited, creating more precise error messages.

Add "macro" keys that behave as if a sequence of keys is typed.

Macro can be added to custom layouts or through the "Add keys to the
keyboard option".
The provisional syntax is:

    :macro symbol='V':ctrl,v
    :macro symbol='CA':ctrl,a,ctrl,c
    :macro symbol='<<':ctrl,backspace

The key syntax is changed slightly to make it delimited, creating more
precise error messages.
@lrvideckis
Copy link
Contributor

lrvideckis commented Jan 19, 2025

small nit, :macro symbol='<<':ctrl,backspace didn't compile (some parsing error), but :macro symbol='&lt;&lt;':ctrl,backspace did compile

@lrvideckis
Copy link
Contributor

Thanks for this change!

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

Successfully merging this pull request may close these issues.

2 participants