feat: add CLI handler for template-based note creation#1703
Merged
Zachatoo merged 3 commits intoSilentVoid13:masterfrom Apr 11, 2026
Merged
feat: add CLI handler for template-based note creation#1703Zachatoo merged 3 commits intoSilentVoid13:masterfrom
Zachatoo merged 3 commits intoSilentVoid13:masterfrom
Conversation
Implements a `templater:create-from-template` CLI handler using Obsidian's registerCliHandler API (v1.12.2+), enabling silent headless creation of templated notes via command line.
Zachatoo
requested changes
Apr 11, 2026
Zachatoo
approved these changes
Apr 11, 2026
Collaborator
|
Thank you! |
C-Bjorn
pushed a commit
to C-Bjorn/Templater
that referenced
this pull request
Apr 21, 2026
…1703) * feat: add CLI handler for template-based note creation Implements a `templater:create-from-template` CLI handler using Obsidian's registerCliHandler API (v1.12.2+), enabling silent headless creation of templated notes via command line. fixes: SilentVoid13#1702 * Update pnpm-lock.yaml file * Update src/types.ts --------- Co-authored-by: Zachatoo <Zachatoo@users.noreply.github.com> Co-authored-by: Zach Young <6936914+Zachatoo@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #1702
templater:create-from-templateCLI handler using Obsidian'sregisterCliHandlerAPI (v1.12.2+)Usage
template.mdoptional)fileopenChanges
src/handlers/CommandHandler.ts- CLI handler registration and logicsrc/types.ts- TypeScript declarations for Obsidian CLI APImanifest.json- UpdatedminAppVersionto1.12.2package.json- Updatedobsidiandependency to1.12.2tests/CommandHandler.test.ts- Test suiteTest plan
npm run build)npm run test-build)