Taitava / obsidian-shellcommands

Execute system commands via hotkeys or command palette in Obsidian (https://obsidian.md). Some automated events are also supported, and execution via URI links.
GNU General Public License v3.0
360 stars 11 forks source link

`{{event_type}}` variable #394

Closed Taitava closed 5 months ago

Taitava commented 7 months ago

Discussed in https://github.com/Taitava/obsidian-shellcommands/discussions/393

Event name in UI Event code in data.json {{event_type}} {{event_type:category}}
Obsidian starts on-layout-ready application-started application
Obsidian quits on-quit application-quit application
Switching the active pane on-active-leaf-changed active-leaf-switched workspace
Caret moved in editor * caret-moved Same as in data.json editor
Every n seconds every-n-seconds Same as in data.json time
File menu ** file-menu file-menu-item menu
Folder menu ** folder-menu folder-menu-item menu
Editor menu ** editor-menu editor-menu-item menu
File content modified file-content-modified Same as in data.json file
File created file-created Same as in data.json file
File deleted file-deleted Same as in data.json file
File moved file-moved Same as in data.json file
File renamed file-renamed Same as in data.json file
Folder created folder-created Same as in data.json folder
Folder deleted folder-deleted Same as in data.json folder
Folder moved folder-moved Same as in data.json folder
Folder renamed folder-renamed Same as in data.json folder
Taitava commented 7 months ago

Done. Will be released in 0.22.0.

Taitava commented 5 months ago

This is now released.