-
Notifications
You must be signed in to change notification settings - Fork 139
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
Using super+space as the start of a chord chain causes it not to end at the tail #83
Comments
I can't reproduce. |
Can't confirm that this is the same issue, but I think that the chain doesn't end on ";" if there is another keybind that has a chain that doesn't end. I tried this with
versus
|
@blairdrummond identified the problem. I was experiencing the same issue and was able to work around the problem by changing all my cords with the same prefix to use a semicolon. |
@blairdrummond identified the problem.
Indeed.
I'm afraid I don't see any solution for this other than not having chains that start with the same chord and have a different locking policy.
When *sxhkd* receives the initial chord, it has no way of knowing whether it should lock the chain or not.
|
How about a vim-like solution with a timeout. If the chain is ambiguous,
wait for a timeout to decide.
Also, I would find a mode where a command is run for multiple steps in a
coord. For example, having it run a command to show a bar when the meta key
is pressed and have that bar open while other chords are run
|
I don't know if this is practical, but would it be possible to create some command that tells sxhkd to abort a current chain? For example, something like
The idea being, if you could end a chain without using
to have. |
Update: Sorry, that was a dumb suggestion, because you can already do that without new technology.
Should accomplish that. Is that an adequate work-around? |
Just to note that I have experienced this issue. Defining this works as intended:
But the following is triggered just by pressing any of
|
I stumbled onto this issue as well. I wanted to warn the user he was entering a complex chord chain, by overloading the first keypress
|
you need This is rather unfortunate, coming from i3 modes were some of the best features, sad to see it's not as robust here. I think at least some integrated command to end the chain should be implemented. |
Also coming from i3 (yesterday) I hit this immediately as well. In i3 I had the following aliases:
I had a mode named "PREFIX" which was basically a menu for accessing other modes. In other modes I would end commands with Having commands in sxhkd to allow us to programmatically enter or exit modes would be extremely useful, though the former wouldn't really be possible without also introducing some sort of labeling. Which is way beyond the scope of this issue 😅. Just an exit command alone would be very useful, so we don't have to trigger the escape key. |
When making a chord chain that starts with
super+space
, the chain doesn't seem to end after the last chord in the chain has been reached.Causes
someCommand
to run each time s is pressed after super+space has been pressed atleast once.Causes
someCommand
only run the first time thes
key is pressed after the super+p chord and I would expect that to be the result when usingsuper+space
awell.I also tried this
Which does the expected thing of only running once
The text was updated successfully, but these errors were encountered: