Kevin515 downloadsCreate customizable button panels for quick access to files, commands, links, and scripts.
[中文 | English]
Buttons Panel is a modern Obsidian plugin that lets you create a customizable button panel for quick access to files, commands, links, and scripts.
.obsidian/plugins/, e.g. YourVault/.obsidian/plugins/buttons-panel/).TracingOrigins/obsidian-buttons-panel-plugin.{{DATE:YYYY-MM-DD}}) and templates.Example: Choose "Tabbed View" to group buttons by category.
templates/). The create file action will use templates from this path.scripts/). The run script action will load script files from this path.Example: Set the template folder to
templates/and script folder toscripts/so that the create file and run script features work properly.
In the button editor, select "Script" as the action type and choose or enter a script file name (.js only).
Script files must be placed in the script folder specified in plugin settings (e.g., scripts/). You can customize this path in the settings tab.
Two script formats are supported:
QuickAdd script format: The script must export an async function, for example:
// scripts/hello.js
module.exports = async function (params, app, plugin, notice) {
notice('Hello from script!');
// You can access the Obsidian API, plugin instance, etc. here
};
Components script format: The script must export an object whose default.entry is an async function, for example:
// scripts/components-demo.js
exports.default = {
entry: async function (params, app, plugin, notice) {
notice('Hello from Components script!');
// You can access the Obsidian API, plugin instance, etc. here
},
};
The script environment injects app (Obsidian instance), plugin (plugin instance), and notice (notification method).
Script errors are automatically caught and shown as notifications.
Security Note: Do not run scripts from untrusted sources. Script execution has inherent risks.
Example: Write batch processing or automation scripts and run them with a single click.
Example: Configure a button with “Create File → Insert Template → Run Script” actions, and all will be executed in order with one click.
node --version), LTS version recommended.npm install to install dependencies.npm run dev to start development mode with live compilation (automatically deploys to test vault).npm run build to build the production version and deploy to test vault.npm run lint to check code quality..env file in the project root and add: VAULT_PATH=/path/to/your/vault.This project is licensed under the MIT License. See the LICENSE file for details.
If you find this plugin helpful, please consider:
This plugin uses icons from the open-source project Lucide, which is licensed under the ISC License.