URI Triggers

unlisted

by chaintng

Run Obsidian URIs when vault and workspace events happen.

Updated 12d agoMIT
View on GitHub

URI Triggers

URI Triggers is an Obsidian plugin that executes configured Obsidian URIs when vault or workspace events happen.

Supported Events

  • File opened
  • File closed, inferred when the active file changes away from a previous file
  • File created
  • File deleted
  • File modified
  • File renamed

URI Templates

The settings page shows a compact list of triggers. Use Add or Edit to open the trigger form popup.

Each trigger stores one or more URI templates (one per line). The plugin replaces these variables before opening each URI:

  • {{event}}
  • {{path}}
  • {{previousPath}}
  • {{basename}}
  • {{name}}
  • {{extension}}

Example:

obsidian://advanced-uri?vault=MyVault&commandid=daily-notes%253Aopen-today
obsidian://advanced-uri?vault=MyVault&commandid=...

Development

npm install
npm run build

Copy manifest.json and the generated main.js into:

<your-vault>/.obsidian/plugins/uri-triggers/

Then enable the plugin in Obsidian.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.