helloSystem / Menu

Global menu bar written in Qt
43 stars 14 forks source link

Implement "= math expresion" issue #132 #146

Closed jsm222 closed 1 year ago

probonopd commented 1 year ago

Hello @jsm222, do you think we could do without requiring the initial = character? e.g., by checking whether the input string contains only 0-9.:/()+* characters?

jsm222 commented 1 year ago

Hello @jsm222, do you think we could do without requiring the initial = character? e.g., by checking whether the input string contains only 0-9.:/()+* characters?

I simply in the update puts all search strings through the calculator. if you use the "= " prefix you get the error strings from calculator back.

probonopd commented 1 year ago

libqalculate seems to be quite dependency intensive; can we use something more lightweight, ideally adding no dependencies?

jsm222 commented 1 year ago

libqalculate seems to be quite dependency intensive; can we use something more lightweight, ideally adding no dependencies?

https://www.freshports.org/math/libqalculate/ it does not look intensive to me. Please clarify your opinion.

probonopd commented 1 year ago

It appears to me like it wants to install a lua just-in-time compiler? Maybe an inderect dependency?

Users-Laptop% sudo pkg install libqalculate
(...)
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        libqalculate: 4.5.0 [FreeBSD]
        luajit-devel: 2.1.0.20221221 [FreeBSD]

Number of packages to be installed: 2

The process will require 22 MiB more space.
3 MiB to be downloaded.

Proceed with this action? [y/N]: n

Edit: Sorry, my wrong. Forgot to sudo pkg upgrade beforehand!