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

Smart Macro: Single Word Caps Lock #607

Open
mstate opened this issue Apr 19, 2023 · 6 comments
Open

Smart Macro: Single Word Caps Lock #607

mstate opened this issue Apr 19, 2023 · 6 comments
Assignees

Comments

@mstate
Copy link

mstate commented Apr 19, 2023

I was hoping to get some advice on how to create a smart macro that turns on caps lock until I press the space bar. This would let me caps lock a single word, especially useful for constants.

For reference, the Moonlander keyboard has this functionality out of the box.

@UndeadKernel
Copy link

The macros user guide has exactly this example already there.
In the file doc-dev/user-guide.md search for the words caps words. You will find the answers you are looking for somewhere around the search hit.

@kareltucek
Copy link
Collaborator

To be fair, the user-guide.md version is just a rather basic workaround.

I.e., the request for a full single-word caps lock is still relevant.

@mondalaci
Copy link
Member

@kareltucek Does the stated "workaround" have any practical deficiencies?

@kareltucek
Copy link
Collaborator

I guess the proper implementation should deactivate the caps lock by any non-letter scancode.

The (suggested) workaround deactivates the caps lock by space only. (Or more generally, you have to make a separate macro for every key that is supposed to deactivate the caps lock, which is pain.)

I agree that it is not a priority, but it would be nice to have some way to specify generic trigger conditions which would be able to cover a wider range of similar use-cases...

@mondalaci
Copy link
Member

If anyone is reading this, feel free to elaborate on the desired trigger condition so that we can understand your needs better.

@kareltucek
Copy link
Collaborator

Note to self: Usecase: prefix keytaps with an action. This could use an ability to wait until postponer processes given number of keys. Or maybe this could be implemented by generalizing ifInterrupted as an uint8_t.

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

No branches or pull requests

4 participants