-
Notifications
You must be signed in to change notification settings - Fork 70
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
Advising System #107
Advising System #107
Conversation
c11ab1b
to
ba49b83
Compare
Added a couple extra APIs for tracking advice, among refining the implementation, as well as completing the documentation. Latest draft may be found https://github.com/agzam/spacehammer/blob/d100cb5368f20679cd48699b73333ab599440b34/docs/advice.org. |
Received some feedback from Grazfather, and ambridsall in the doom emacs discord. Updated the advice docs and caught a mismatch in the |
More doc updates from discord feedback https://github.com/agzam/spacehammer/blob/93e17f9558af9697f448833ad732a463fcec1b0e/docs/advice.org |
78b60f9
to
cef0dc5
Compare
cef0dc5
to
2a50d8a
Compare
Unit testing was merged so this is ready for review whenever you're available @Grazfather |
Thanks to ambirdsall from doom discord for the suggestion
2a50d8a
to
be82e51
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Saw 2 rendering issues, LGTM overall.
agzam#107 Added an advice doc, still WIP though Fixed some small types in docs/advice.org Fixed small formatting issues in docs/advice.org Finished advice docs and refined implementation Documented one last consideration in advice.org Updated advice.org section order Thanks to ambirdsall from doom discord for the suggestion Reorder advising doc for users Update advice docs, fix after advise type return value Updated advice org formatting More advice.org formatting updates from discord feedback Optimize advice entry lookup on every dispatch call Fixed PR review issues for advice Fixed advice.org formatting
Provides a system to wrap or define advisable functions that can be overwritten later. See #72 for intended use case.
Can solve a number of open PRs by allowing us to wrap some of the internals to support advising. Then users can customize the behaviors by adding advice to their liking. This helps us reduce the number of config settings we need to include for personal preferences.
For example:
We can make the main modal.fnl alert function advisable, then users can add advice to override it so that it displays on all monitors at the same time.
The work here depends on the testing work in #106.
Usage example:
Closes #101
Closes #72
Test Results and feature list:
Credits
Big thanks to @Grazfather for getting a first draft out I could iterate on. We also paired a few weeks back and traded knowledge around this which helped a lot.