-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
[Feature] Macro / User-defined commands with arbitrary JavaScript & provide a helper library #159
Comments
By the way, this can be already achieved by the following custom link copy format:
|
Great idea to power up the context menu even more! The add to dictionary function could be really useful to learn new words & creating new .md files with it for remembering! I'd be glad if you could add something like this to the library:
|
Macros (#145) will be addressed as a part of this feature. |
We don't need to limit ourselves to context menus; it would be better if we could define custom commands that can be triggered from anywhere like any other Obsidian commands. These commands can be added to the context menu, too. This way, #174 also can be resolved by this feature. |
Allow the user to add their own custom context menu item that can trigger arbitrary JavaScript.
It will be also beneficial to provide some commonly used functions as a library so that everyone can use them without reinventing the wheel.
An example I have in mind is a context menu item "Add to dictionary".
It will create a new note in the
English/Dictionary
folder whose title is set to the selected text.The note content could be initialized with a link to the text selection.
The text was updated successfully, but these errors were encountered: