dustinrue / ControlPlane

ControlPlane - context-sensitive computing for OS X
http://www.controlplaneapp.com
BSD 3-Clause "New" or "Revised" License
1.76k stars 180 forks source link

Nested Context Behavior #416

Open jhnielson opened 9 years ago

jhnielson commented 9 years ago

I have a set of Contexts that are nested like this:

The Rules for each of these are as such

However, the match behavior is odd, when I have just a connection to the WiFi SSID, the Match numbers look like this:

However, if I un-nest the contexts the match looks like this:

Am I missing something or using nested contexts wrong?

Thanks for any help possible, JHN

jhnielson commented 9 years ago

Is there somewhere that describes how Nested Contexts work?

dustinrue commented 9 years ago

I actually don't recommend that people use nested contexts in favor of multiple active contexts. In almost every case where nested contexts are in use multiple active contexts are easier and a better fit.

Try it out by visiting advanced settings and enabling the option. Then just create specific rules for each context and they can be active independent of each other.

sgade commented 8 years ago

I fully understand the model of how (sub-)contexts work stems from the far past (I found this post). However, with the way it is communicated within the application, I've seen many people - including myself - believe that subcontexts only activate, if the parent context may become active. This seems far more logical and easy to understand to me.


As you are proposing to use multiple active contexts, I guess I then need to apply all the rules of the parent context to the subcontexts, right?

wedi commented 7 years ago

To do this it would be cool to have a tree view of contexts and the roles and actions underneath. Even more important would be a feature to duplicate contexts/rules/actionsinstead of having to enter everything multiple times. As an alternative it would help to be able to apply rules/actions to multiple contexts.