Version: (using KDE 4.1.2)
Compiler: gcc 4.3.2
Installed from: Compiled From Sources
When entering a simple formula like 4+5 in the Alt-F2 run command dialog nothing happens. You have to enter "=4+5" to see a result.
It would be nice if the behaviour of KDE 3 could be restored.
"=4+5" or "4+5=" ...
in any case, since we do as-you-type matching and support a huge number of plugins already in a limited thread pool but need to maintain responsiveness, it will stay as it is.
what we could do is allow you set a custom "trigger" word, and let you set it to "" which would cause it to evaluate at every keystroke.
And why not evaluate the expression after pressing "enter" key?
Calculator could be triggered automatically as we type an operator sign (+, -, /, *).
@FiNeX: because that's not how the krunner user interaction works at all, making it an odd inconsistency. how is <enter> any better than =?
@Florent: making it trigger when you type in paths or any number of other things.
@Aaron: because in my keyboard layout (it) the "=" char is done pressing two keys (SHIFT+0), so pressing enter is simply more quick. Anyway it was only a curiosity :-)
It's far more intuitive to press enter to obtain a result. And it was the default behavior of previous versions. It took me several months to discover that the new krunner also had a calc. I only discovered it when I was searching for a bug entry here :)
@Marcelo: most kde3 users never knew the old dialog had a calculator; pressing enter puts the last results in the text edit box ready for further calculation, so it already has a purpose; and enter is "run this command" in krunner not "execute the results"
I use KDE3 and often do quick calculations with Alt+F2. I really like that it can be done with as few keystrokes as possible. I would like it to work just as nice when I upgrade to KDE4. If I have to add the '='-sign it means that I have to press 2 extra keys (SHIFT+0) and I have to change my habit. Someone with permission, pleas make this block bug #186184 (I can not).
*** This bug has been confirmed by popular vote. ***
*** Bug 200571 has been marked as a duplicate of this bug. ***
*** Bug 207897 has been marked as a duplicate of this bug. ***
I wholeheartedly support this feature request.
Entering Shift+'+' is absolutely inconvenient.
Working with the result of a calculation is impossible without using a mouse (and selecting the result).
Almost all KDE3 users who I know do use KRunner calculator and prefer the old behaviour.
How about adding a delay before the calculation is executed, say, half a second after the last keypress. That would delay the answer with half a second, but on the other hand the user doesn't have to type '=', and a new calculation is made at most every half second.
(The time here is just an example.)
I should also mention that I'm willing to give it a try (when I can find the time..) if people think it's an ok solution.
Thank you Hans, I am looking forward to it!
Please also have a look at bug #313301, where I suggest generic trigger-word / prefix support for KRunner.
Since KDE 4.11, you can omit the '=' sign, if you do not have letters (such as 'sin', 'log', etc.) in the expression, so I consider this fixed.