-
-
Notifications
You must be signed in to change notification settings - Fork 175
feat: support .base templates and guard capture targets #1122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
chhoumann
merged 9 commits into
master
from
1121-feature-request-allow-creating-and-templating-base-base-files
Feb 24, 2026
Merged
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
11e6490
feat: support .base template files for template choices
chhoumann 57e43ff
fix: preserve explicit capture target file extensions
chhoumann 652737d
docs: clarify capture target extension behavior
chhoumann 964d672
fix: normalize capture title for non-markdown targets
chhoumann cb39ed4
fix: disallow capture targets with .base extension
chhoumann 78d3577
docs: add capture-from-base template active-file example
chhoumann cf476a0
docs: add MOC related-notes base capture example screenshot
chhoumann 471529a
docs: add MOC base capture example to sidebar
chhoumann 1ca1085
docs: retake MOC capture screenshot with compact viewport
chhoumann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
34 changes: 34 additions & 0 deletions
34
docs/docs/Examples/Capture_InsertBaseTemplateIntoActiveFile.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| --- | ||
| title: "Capture: Insert a Base Template into the Active File" | ||
| --- | ||
|
|
||
| Use this pattern when you want QuickAdd to insert `.base` syntax into your | ||
| current note. | ||
|
|
||
| ## Why this pattern | ||
|
|
||
| Capture does not write directly to `.base` files, but it can still pull content | ||
| from a `.base` template and insert that content into the active markdown note. | ||
|
|
||
| ## Setup | ||
|
|
||
| 1. Create a Capture choice. | ||
| 2. Enable **Capture to active file**. | ||
| 3. In **Capture format**, reference your `.base` template with an explicit file | ||
| extension. | ||
|
|
||
| Example: | ||
|
|
||
| ````markdown | ||
| ## New Board Snippet | ||
|
|
||
| ```base | ||
| {{TEMPLATE:Templates/Kanban Board.base}} | ||
| ``` | ||
|
|
||
| Note: {{VALUE}} | ||
| ```` | ||
|
|
||
| 4. Run the Capture choice while the destination note is active. | ||
|
|
||
| QuickAdd will resolve the `.base` template and insert it into the active note. |
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.