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

Configurable Note plugin #43

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Configurable Note plugin #43

wants to merge 4 commits into from

Conversation

philschatz
Copy link

This refactors the note plugin so it can listen to multiple classes or type attributes and switch between them in the dropdown.

and the user can convert from one class/data-type pair to another; if
one of them does not support a title it is removed.

# Find all classes that could mean something is "notish"
# so they can be removed when the type is changed from the dropdown.
notishClasses = {}

Plugin.create 'note',
init: () ->
# Load up specific classes to listen to or use the default
types = @settings.types or {note: true}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this default config should be updated, and possibly moved to a more intelligent place for a default config to live, does aloha have a standard for that?

@philschatz
Copy link
Author

@tmsp1 Aloha does have a way to define Plugin defaults; I updated the code and added documentation

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

Successfully merging this pull request may close these issues.

2 participants