-
Notifications
You must be signed in to change notification settings - Fork 177
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
Overload for some keyd only #784
Comments
This is already how chording works. I believe what you want is:
|
Thanks for your answer.
Do you mean that the semantic of I also tried this before, but a second problem is that chord are triggered by default only if I press them within 50ms (and I don't want to change this value since I use chords elsewhere where 200ms would be too high). So if I press these keys before 50ms or after 200ms this works, but if I press them within 100ms it will type |
Sorry, they are indeed equivalent. I didn't realize you wanted this kind of asymmetry. The idea of a chord is that both keys should be struck 'simultaneously' (the gap between their depression is not perceptible to a human). Your chording interval should be sufficiently low (default is 50ms) that anything other than what you pereceive as pressing both keys together is not interpreted as a chord. Can you elaborate on your use case? If your goal is to deliberately strike |
Sure, that's why I don't think chords is the right tool to use here (together with the symmetry), as in my case the range is rather 50-200ms and is definitely too slow for a chord. That's why I suggested a different syntax above, that could fit my use case, maybe not very elegantly but at least with minor modifications to keyd (hopefully). But other solutions might work as well.
Well, I just want to have a modkey that I can use directly to delete a character without waiting 200ms when pressing |
I just fall in love with mod keys (e.g. using a + u instead of backspace)… so much that I try to use them so quickly that keyd cannot anymore distinguish whether I want to actually type
au
or if I want to delete the last character (of course, it has no way to know, since I don't pause for at least 200ms as expected). But I realized that I would never typeg
followed byu
(this is because in bépo,g
is actually producing a comma, and comma are basically never directly followed by letters), sog
would be a perfect candidate for a modkey!So basically, I'd like:
g
is typed reasonably quickly, it just printsg
g
is typed but hold alone during a long time, it prints nothing (I often do that when I realize that I did not want to move/delete something)g
is pressed in combinaison withu
, it types backspaceg
is pressed in combinaison with a different, non-arrow/… letter (typically rolling), it printsg
followed by this letter.My tries
Sadly, I can't find how to implement this. For instance, if I do:
then rolling
ga
for instance will only printa
instead ofga
. It is maybe not the cleanest solution, but I think this would be possible if we provide a chord-like feature like:where the semantic of
g(200)>u
would be to fire the action ifu
was pressed afterg
within 200ms.The text was updated successfully, but these errors were encountered: