python icon indicating copy to clipboard operation
python copied to clipboard

Add support for lisp eval support for S Expressions

Open hyiltiz opened this issue 8 months ago • 1 comments

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 avatar Feb 01 '25 01:02 hyiltiz