Taitava / obsidian-shellcommands Public
generated from obsidianmd/obsidian-sample-pluginNew 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
Events, part 1 #123
Comments
… by extending the classes. Will be used for SC_AbstractFileMenuEvent related variables.
And show them in ShellCommandExtraOptionsModal, too.
FolderMenu still lacks extra variables.
- Register them the same way as normal variables.
- Show error messages if they are tried to be accessed outside an event, or in a wrong event.
- {{event_*}} variables are not inherited from their normal counterpart variables anymore (e.g. {{event_file_name}} is not inherited from {{file_name}} anymore).
During an SC_Event_FileMenu event, a file is always available.
…the event. Before this, the notification was only shown when changing the interval value (seconds).
|
What are the chances we could get an event that triggers when a link is clicked with a {{event_link_text}} variable? A usage example would be when clicking [[audiofile.mp3]] the event would trigger allowing me pass the mp3 name to a python script. Amazing plugin btw! |
Thanks for the question!
Thank you! |
This lists all events that are enabled, and shell commands for which they are enabled.
… a shell command is excluded from it.
Reflects new settings fields "events" and "command_palette_availability".
|
Released. |
Discussed in #60
Events that will be implemented now:
New variables:
{{event_file_extension}}{{event_file_name}}{{event_file_path}}{{event_folder_name}}{{event_folder_path}}{{event_tags}}{{event_title}}{{event_yaml_value}}Other things:
The text was updated successfully, but these errors were encountered: