albertlauncher / albert

A fast and flexible keyboard launcher
https://albertlauncher.github.io
Other
7.22k stars 303 forks source link

Qalculate extension (Suggestion) #633

Closed XDjackieXD closed 6 years ago

XDjackieXD commented 6 years ago

muParser is a powerful parser for mathematical expressions, but coming from krunner, I miss the power of qalculate as it can do quite a bit more than muParser. Consider this as an idea that could be implemented sometimes as I currently don't have the time needed to implement it myself.

ManuelSchneid3r commented 6 years ago

But I guess you have the time to elaborate a bit?

XDjackieXD commented 6 years ago

Compared to muParser, Qalculate handles symbolic calculations and units very well which is relly useful when using it during electronics design and similar use cases.

So far I haven't looked into qalculate's api but I could look into it.

ManuelSchneid3r commented 6 years ago

The thing is you are comparing a lib with a desktop application. What do you expect me/us to do?

XDjackieXD commented 6 years ago

Qalculate primarely is a library. The Calculator application is their reference implementation of an application using libqalculate. https://github.com/KDE/plasma-workspace/tree/master/runners/calculator this for example is the krunner plugin for qalculate.

ManuelSchneid3r commented 6 years ago

Cool. This lib looks awesome.

XDjackieXD commented 6 years ago

I'm currently working on an extension as I just found some time and I should have something working in a few minutes ^^

XDjackieXD commented 6 years ago

The only "problem" right now is that the default invocation of the qalculate plugin ("="; only has to be explicitly typed when you have letters in the expression. else it will try to parse the expression automatically) overlaps with the default invocation of the wolframalpha websearch

ManuelSchneid3r commented 6 years ago

See https://github.com/albertlauncher/plugins/pull/8