sahwar / 7plus

Automatically exported from code.google.com/p/7plus
1 stars 0 forks source link

More Boolean logic operators to chain conditions #387

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I might be just noticing this but there's no way to make OR conditions and to 
group them: (cond1 OR cond2) AND cond3. The only option that I see is cond1 AND 
cond2 NOT cond3.

Use case: I want to make a key-combo hotkey to work only in GMail and custom 
domains. The only way to do it is to trigger by active window title. Currently, 
I either can create a separate event for each mail service or make a separate 
event for each browser, which will be then active on any web page.

Original issue reported on code.google.com by denbara...@gmail.com on 8 Aug 2012 at 1:34

GoogleCodeExporter commented 8 years ago
Known problem, see the merged issue.
For the events that I wanted to supply with 7plus this issue only came up a few 
times and didn't justify implementing such an expression parser. This is 
possible in the future though.

Original comment by fragman@gmail.com on 8 Aug 2012 at 1:42

GoogleCodeExporter commented 8 years ago
Implemented!
I had a good idea on how to show it in the event editor window, the rest was 
pretty easy.

It actually removes about 1/3rd of the events from the list, so the savings are 
more than anticipated.

Original comment by fragman@gmail.com on 10 Aug 2012 at 2:42