Skip to content

Add support for lisp eval support for S Expressions #209

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

hyiltiz
Copy link

@hyiltiz hyiltiz commented Feb 1, 2025

This adds support for evaluating S Expressions using various lisp-like languages (whichever is available in a system). The plugin has a simple dropdown custom option to select the language as well.

I was able to workaround the issues described below. Namely, I was trying to debug from within my own python process but that is not how Albert was designed. I just had to start albert with QT_LOGGING_RULES= 'albert.python.lisp_eval=true' /Applications/Albert.app/Contents/MacOS/Albert.

Note that the python bluetooth plugin somehow caused crash when invoking from the command line (my terminal app had full access to disk, privacy settings etc.) but worked fine if opened via open /Applications/Albert.app.

Previous Issues

I need help with local testing. I followed CONTRIBUTING.md by cloning this repo into git clone https://github.com/<username>/python.git ~/Library/Application\ Support/albert/python/plugins and used PyCharmCE and pointed it to use the venv that came with albert. However, from albert import * still fails as the albert module is not available. pip3 install albert does not seem to work as albert is not a PyPI published package. Is there a step by step guide to follow to make available the albert dev module?

Also, it would probably be useful to show the list of available lisp interpreters for the user to choose in Albert plugin settings. I am not too concerned about that for now, as the functionality is intended for simple short evaluations of one-liners, and those tend to be just simple calculators.

@hyiltiz hyiltiz changed the title [DRAFT] Add support for lisp eval support for S Expressions Add support for lisp eval support for S Expressions Feb 4, 2025
@hyiltiz
Copy link
Author

hyiltiz commented Mar 3, 2025

Would appreciate this PR to get merged; anyone interested in reviewing? CC @ManuelSchneid3r @idkCpp @stasadev @luksfarris

Signed-off-by: Hörmet Yiltiz <yiltiz@apple.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant