For updates to the Obsidian API run npm update in the command line under your repo folder.Reload Obsidian to load the new version of your plugin.Those changes should be automatically compiled into main.js. Make changes to main.ts (or create new.Run npm run dev to compile your plugin from main.ts to main.js.Install NodeJS, then run npm i in the command line under your repo folder.obsidian/plugins/your-plugin-name folder. For convenience, you can place this folder in your. Clone your repo to a local development folder.Make a copy of this repo as a template with the "Use this template" button (login to GitHub if you don't see it).Check if someone already developed a plugin for what you want! There might be an existing plugin similar enough that you can partner up with.Quick starting guide for new plugin devs: Registers a global interval which logs 'setInterval' to the console.Registers a global click event and output 'click' to the console.Adds a plugin setting tab to the settings page.Adds a command "Open Sample Modal" which opens a Modal.Adds a ribbon icon, which shows a Notice when clicked.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |