-
Notifications
You must be signed in to change notification settings - Fork 126
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
Bug: Tap dance eager highly consistent when there is unicode(?) inside #1225
Comments
I suspect some rapid timing related issues are in play. Could you try adding a delay before the backspace+straight-quotes in the second action of the tap-dance?
|
@jtroo It still does not work. I then also tried changing your 50 to a 5000 to make the difference more obvious, but when I type it twice, it just immediately sends the output, without the delay, so I think that part isn't being parsed at all. |
I tried it on a Windows laptop and same issue. Every once in awhile, it will output the correct symbol, but it rarely happens. |
Ah right I recall the issue now, I believe it's that the fake-key presses interfere with the tap-dance eager. Instead of tap-dance eager you might instead want to put the logic in switch, e.g. a case of |
Interestingly the simulator seems to have the intended behaviour, but it does have some differences so might be due to that. Sim link |
Maybe this might work: Sim link. |
@jtroo Sorry for the late reply but this worked! Thank you so much! |
@jtroo I do have one problem though, It wont let me enter quotation marks using S-q. It just outputs as |
Can you post a simulator link? |
Note that quote is on the Q key because of dvorak. |
Is this happening on both Windows and Linux? My guess is only Linux, since the simulator sequence looks like it should be OK, but on Linux the unicode output code would do a press+release of lshift and not repress it even though the physical key is still pressed. |
Requirements
Describe the bug
Currently I have the " key set to choose between
”
and“
depending on what was most recently typed, and I want it to output a normal straight quotation if I type it twice in succession, but for some reason using tap dance eager isn't very consistent.If I type " twice in succession quickly, it just gives ”“. but every once in awhile, it will output what is expected.
Relevant kanata config
minimal working config (i have the tap dance eager set to 5sec to show that this isn't a timing issue)
To Reproduce
Expected behavior
It should output one of the curly quotation marks, then delete it and insert a straight quotation mark.
Kanata version
kanata 1.6.1
Debug logs
This is the output from tapping the " key twice.
Operating system
Linux (Ubuntu 24.04) and Windows 10
Additional context
I understand that this is a niche thing even for the niche world of Kanata, so I completely understand if it ends up that you can't do much about it. If that is the case, I'll just use regular tap dance. (the reason I prefer tap dance eager is because it sends the output immediately)
The text was updated successfully, but these errors were encountered: