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

It would be amazing to have a way to use literal characters, ignoring any modifiers #464

Closed
TZProgrammer opened this issue Jun 24, 2023 · 2 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@TZProgrammer
Copy link

If you try to invert "-" and "" for example, you will find it impossible. It would be nice to be able to fork between the literal "-" and the literal "" with the lsft press. Right now that is not possible due to the lsft being applied to "-", making it a "-". I think if you have multi with release-key, it also does not work, I think then the fork might not happen? I am not sure, but I have not gotten it to work.

Describe the solution you'd like
Something like a keyword to make any character literal. For example "L-a" could stand for "literal a"

@TZProgrammer TZProgrammer added the enhancement New feature or request label Jun 24, 2023
@jtroo
Copy link
Owner

jtroo commented Jun 24, 2023

This feature may be what you're looking for:

https://github.com/jtroo/kanata/blob/main/docs/config.adoc#global-overrides

Let me know if that helps!


Technical aside: a feature that outputs "literal characters" would be the unicode action. This is unfortunately not well-supported across all applications. Other than using this unicode action, I don't think it is possible to properly support a "literal character" output because there are multiple levels in the OS that can change what character a keyboard event can be, and kanata is only in control of one of them.

Some related tickets for attempting to implement a literal character:

@jtroo jtroo added the question Further information is requested label Jun 24, 2023
@TZProgrammer
Copy link
Author

This is exactly what I was suggesting, thank you! Also, great work, Kanata is an amazing tool.

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

No branches or pull requests

2 participants