Add support for lisp eval support for S Expressions #209
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 intogit 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 thealbert
module is not available.pip3 install albert
does not seem to work asalbert
is not a PyPI published package. Is there a step by step guide to follow to make available thealbert
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.