Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Festure Request: add calculator function #65

Open
nesono opened this issue Feb 23, 2023 · 2 comments
Open

Festure Request: add calculator function #65

nesono opened this issue Feb 23, 2023 · 2 comments

Comments

@nesono
Copy link

nesono commented Feb 23, 2023

As an ilia user, I would love to be able to do some small calculations with ilia.

One way to add the feature could be to switch on evaluation when the user starts the query with an equal sign (like Alfred does).

I'd be happy to spend some cycles myself, but I have no real experience with Vala and GTK+ development. So if you give me some pointers m, I might kick something off myself...

@kgilmer
Copy link
Member

kgilmer commented Feb 24, 2023

Hi @nesono , ilia has a plugin style architecture that would make it pretty easy to add a "calculator" tab that could be loaded. I have found the language to be similar to the traditional OO languages C# and Java and did not have much trouble picking it up. For me, most of the difficulty is in understanding Gtk docs. In any case , if you'd like to get started, here is some example code: https://wiki.gnome.org/Projects/Vala/Examples

You could create a new directory from here that provides a class that implements DialogPage.

@kgilmer
Copy link
Member

kgilmer commented Feb 24, 2023

The textlist page is probably the simplest to see how things work and get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants