Version: 1.8.1 (using KDE KDE 3.4.1) Installed from: Fedora RPMs OS: Linux On some old fashioned real world calculators I've used the last calculation gets repeated each time I hit the equals sign. This is useful if you're converting from bytes to MB for example as you can just do "/1024" and hit equals twice. kcalc doesn't seem to do this and I'm not sure why - I suspect I'm missing something obvious here.
Well, I'm not sure if you are missing something or not, but I also think this would be a good idea, easy to implement and useful. Also there could be a menu entry "repeat last operation" (with exactly the same function).
*** Bug 185457 has been marked as a duplicate of this bug. ***
I think it's a good idea to add this behavior but there have to be an option to disable it if needed
Git commit 0c4c775b9dd36c3a93a707f28ff15232165b301a by Christoph Feck, on behalf of Maximilian Schiller. Committed on 16/08/2018 at 22:26. Pushed by cfeck into branch 'master'. Repeat last action when pressing "=" or Enter This patch allows to press the equal sign again in order to repeat the last action again. For example "5+10" yields "15" on Enter and if you press Enter or equal sign again it repeats the "+ 10" by showing you "25" now. This behavior is disabled by default and can be turned on in KCalc's settings panel under "Misc". Differential Revision: https://phabricator.kde.org/D12099 M +10 -0 general.ui M +4 -0 kcalc.kcfg M +25 -1 kcalc_core.cpp M +4 -0 kcalc_core.h https://commits.kde.org/kcalc/0c4c775b9dd36c3a93a707f28ff15232165b301a
Thank you, it works as described and the setting is persisted so it keeps working the way I enjoy.
This has since been removed. I would like it restored, if possible, so that I can use the calculator like most physical calculators.
I agree. Why was this removed? This is an essential function for a basic calculator.
(In reply to Andreas from comment #7) > I agree. Why was this removed? This is an essential function for a basic > calculator. Seems not implemented (yet), big rewrite happened January 2024 in https://invent.kde.org/utilities/kcalc/-/commit/c7864e9547b2ef2e9e318a88c78ba51f10fbc5e3 ..
I can reproduce this on KCalc 25.04.0
I can reproduce this issue / "bug" across Arch, Fedora, Debian, etc. When is this feature going to be implemented? The calculator in Windows has always worked this way. The calculator in Mac OS has always worked this way. Real-life calculators have always worked this way. I am stunned that this feature has not been implemented in Kcalc or actually ANY linux calculator that I've been able to find and test (except one..) Funnily enough, KDE's plasma calculator widget DOES function / work this way! Can this PLEASE be brought to Kcalc?
I've changed the value of the "Version First Reported In" field to the oldest version available now (17.12), but it should have been 1.8.1. Please DON'T UPDATE the "Version First Reported In", because that field is meant to show against which version when the issue was originally created.