-
Notifications
You must be signed in to change notification settings - Fork 17
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
Ignore oblique swipes if they do not have a command set. This improve… #8
base: master
Are you sure you want to change the base?
Conversation
…s recognition if only vertical and horizontal swipes are used.
I think it's better to add a [[general]] section to the configuration file and add a toggle there like |
Or check if one of the oblique commands is set, and then set an oblique flag, which can be checked in the if statement checking for oblique swipes. |
@oryasida that would have a nasty side effect, what if only that oblique command isn't set and the rest is? |
How is that different from what you're proposing? If one of the oblique commands is set, we check for all of them, if none we don't check for any. |
I rather meant that checking for one then all is implicit configuration, I'm more a fan of explicit configuration. if This also gives the advantage of being able to toggle the oblique commands on and off without having to remove them from the config file. Or I must be misunderstanding things and badly explaining things because it's getting quite late here and I'm quite tired 😛 |
With my changes I had the following in mind: If you don't have oblique commands set, you probably want a bit more flexibility with making your horizontal/vertical gestures and only want to detect those. Maybe you now add one oblique command; you want that one recognized, but still want a bit more flexibility drawing your gestures into the other directions. If you have all four oblique commands set, my changes do not change the current behavior. |
@Coffee2CodeNL |
I'll think about it for a bit for the rest of the evening and tomorrow, probably some hybrid/combined solution and/or splitting up the responsibilities (detection vs checking vs execution) Who knows, we could add multi-threading and separate input from execution completely for performance reasons 🤷♂️ Or is that too crazy? 😛 I'd also like to invite both of you to the Discord server, makes brainstorming a bit easier and keeps PRs straight to the point and on topic, see the Readme for the link. |
…s recognition if only vertical and horizontal swipes are used.