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

Numeric confidence input #126

Open growler opened 12 years ago

growler commented 12 years ago

Would that be possible to provide a numeric confidence input alternative to a slide bar? Trying to get a round number (like, 75%) or exact number for two different rules really irritates me.

Alexey Naidyonov

bringel commented 12 years ago

I know that this issue is old but I think we should try and do this. I have some time (I think) before my classes start to get crazy so I can try and work on this. Unless it's already being done in the rewrite that is.

dustinrue commented 12 years ago

If you'd like to tackle it go ahead.

bringel commented 12 years ago

I think that in order to accomplish this without adding another column to the tableview the interface may have to be rewritten using view based table views. Is this already in progress in the rewrite that I could piggy back off of or should I do it? It should work since the latest version dropped support for SL so there are no compatibility issues.

dustinrue commented 12 years ago

I haven't been involved much with the rewrite so I couldn't say what star the code is in but I know the interface hasn't been modified. Another request is to show whether or not the listed rule matches. Adding it seemed to require some non-trivial changes to CP. Something to keep in mind if youbredonthat portion of the interface.

djbe commented 12 years ago

Actually the rewrite doesn't use confidence percentages at all anymore, ever since we got numerous complaints about the complexity/uncertainty of it.

The rewrite allows using complex rules such as in iTunes smart playlists and FInder search queries: standard rules as we have them and compound ones containing sub-rules, matching them with all/any/none operators.

So you're better of writing this for the main branch.

bringel commented 12 years ago

I can go ahead and start working on it. How far off do you think the rewrite is? I never much liked the confidence based rules either but I thought there must be a reason for them.

djbe commented 12 years ago

The current branch uses diffuse rule matching, which in essence is more powerful than simple binary (yes/no) matching as used in the rewrite.

But the rewrite has multiple locations and compound rules, which in turn should be much more powerful than the current structure and also be easier to use.

Also, after the basic rewrite UI is done (the rest should already work), I'm thinking of adding a bit of AI (gotta use all those years of CS for something, right?): automatic location (context) learning. I have some ideas on how to do it, but I'm unsure as how to combine it with multiple context groups. Can be done, but makes it quite a bit more complicated.