-
-
Notifications
You must be signed in to change notification settings - Fork 48
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 / Feature] stack for commands #219
Comments
@EdenQwQ can you provide your input on this? |
@tsankuanglee Could you please check out #220 and let us know if the change meets your request |
@EdenQwQ , I have not got a the chance to test the code yet (will probably be a few days before I can find time to do that), but from the description of that PR, yes, it addresses exactly the problem I'm describing here. Thank you so much! By the way, the example you gave in your PR is much more concise and clear! |
Thanks! We won't merge it without your feedback, but take your time! |
Just an update that I'm still on this. I'm getting some weird rust index out of bounds errors:
I'm also seeing this error with the release version, so I suspect it's something on my end. I'll resolve it and test your PR and report back. |
It's weird because I though I've solved this issue with the latest commit in that PR. Could you run |
@EdenQwQ thanks for the prompt. I created #222 for the index out of bound problem that happened on the release version. To clarify, when I got the error with your PR (yes, I did pull the latest commit), I was using the correct config (as opposed to the incorrect one mentioned in #222), but with an extra
|
@EdenQwQ By the way, here's an illegal config that I accidentally used (see the last line: no
Not sure whether that's a useful data point for you to debug.
|
@EdenQwQ can you look into this dear? |
Version Information:
uname -a
): Linux 6.4.8-arch1-1swhkd -V
): 1.2.1Describe the bug:
Commands chained by
&&
seem to be executed together, disregarding mode stack changes. Example:Expected behavior:
With
@escape && @enter display_selection && @enter brightness_selection && set_brightness.sh
, we expect when modedisplay_selection
is popped, we continue to the next command@enter brightness_selection
.Actual behavior:
As soon as
b
fires@escape && @enter display_selection && @enter brightness_selection && set_brightness.sh
, everything is executed right away, including theset_brightness.sh
script, while we are still in the modedisplay_selection
.To Reproduce:
See example above.
Additional information:
Since we don't have the syntax like
sxhkd
as I mentioned in #67 , we can't exactly do a command with more than two expansions, e.g.With the mode design, I can only get around it by temporarily saving a state for later use.
That said, mode actually provides a more clear and reusable design, if this bug/feature is addressed. For example, I can re-use the
display_selection
mode for not only brightness, but contrast, color temperature, etc., by entering that mode, and then continue with the next action.The text was updated successfully, but these errors were encountered: