All queries starting with "<keyword>:" will directly query the scope you want.
In my opinion, this bug is somewhat invalid, since there already is a "calculation detector" in the Dash querying process, but other results tend to hide its effect (you often need to scroll to see the calculator result) and you also need to have online search enabled even if the calculator scope is locally installed.
========
For reference, here is some background on the calculator scope / dash relationship and how it works right now.
Let's assume a fresh Ubuntu > 14.04 install.
A) with an Internet connexion:
- A "2+2" query is typed in the Dash.
- The Dash sends the query to dash.ubuntu.com (with some metadata: version, language, list of local scopes)
- The Scopes Server sees the query starts with a digit, adds the calculator scope to a list of local scopes to activate
- It also runs its own ~relevant scopes with the query, returns results to the Dash
- and selects some other ~relevant scopes from the list of local scopes and returns a list of scopes to activate to the Dash
- The Dash activates scopes from this list (including the calculator scope)
- The calculator scope returns "4", you probably need to scroll to find it
B) If you remove the Internet connexion or decide to disable online queries:
- A "2+2" query is typed in the Dash
- The Dash runs a set of always enabled scopes and waits for the user to enable/disable scopes in the "FIlter results" list.
- You manually activate the calculator scope
- The calculator scope returns "4"
Note that it's already triggered with "calc:" , "result:" , "calculator:" and "calculate:".
$ grep Keywords /usr/share/ unity/scopes/ info/calculator .scope calculator; result; calculate; calc;
Keywords=
All queries starting with "<keyword>:" will directly query the scope you want.
In my opinion, this bug is somewhat invalid, since there already is a "calculation detector" in the Dash querying process, but other results tend to hide its effect (you often need to scroll to see the calculator result) and you also need to have online search enabled even if the calculator scope is locally installed.
========
For reference, here is some background on the calculator scope / dash relationship and how it works right now.
Let's assume a fresh Ubuntu > 14.04 install.
A) with an Internet connexion:
- A "2+2" query is typed in the Dash.
- The Dash sends the query to dash.ubuntu.com (with some metadata: version, language, list of local scopes)
- The Scopes Server sees the query starts with a digit, adds the calculator scope to a list of local scopes to activate
- It also runs its own ~relevant scopes with the query, returns results to the Dash
- and selects some other ~relevant scopes from the list of local scopes and returns a list of scopes to activate to the Dash
- The Dash activates scopes from this list (including the calculator scope)
- The calculator scope returns "4", you probably need to scroll to find it
B) If you remove the Internet connexion or decide to disable online queries:
- A "2+2" query is typed in the Dash
- The Dash runs a set of always enabled scopes and waits for the user to enable/disable scopes in the "FIlter results" list.
- You manually activate the calculator scope
- The calculator scope returns "4"