Repository navigation
feat: Insert > Page Templates, and save a page as a template (#173) - #239
Merged
DWAA1660 merged 3 commits intoNov 14, 2026
Merged
Conversation
…chSoftware#173) Insert > Page Templates was a disabled button. It now opens a pane on the right with templates by category (Academic, Blank, Business, Planners and My Templates). One click adds a page to the open section from a template and opens it. The page that was open is never written over: the new page goes last in the section, untitled, as Add Page makes it. - Eight built-in templates (Lecture Notes, Study Guide, College Ruled, Grid, Meeting Notes, Project Overview, To Do List, Weekly Planner) are kept as Markdown with their paper, and written in the section's format. - "Save current page as a template" keeps a copy of the page's folder (words, boxes, ink, files, paper and colour; not its subpages or its version history) in .notecraft/templates/ in the notebooks folder. A page made from it gets new ids and a fresh date. store::page_templates holds this, with unit tests. Engine commands page.templates, page.from_template, page.save_template and page.remove_template give the CLI, MCP and control channel the same features. Docs: commands.md (regenerated), folder-format.md, gaps.md, feature-parity.md. Not built: template previews, a default template for new pages, and removing a saved template from the pane. Closes AlienTechSoftware#173 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y4im4nvZvQHZdShop1ff8w
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.
Closes #173.
What changes
Insert > Page Templates used to be a disabled button. It now opens a pane on the right, in the same style as the Tags Summary.
.notecraft/templates/<name>/in the notebooks folder. It's a dot folder, so the tree never shows it. A page made from it gets fresh ids and a fresh date, the same way Copy works.Code
crates/store/src/page_templates.rs:list,find,save,removeandnew_page, with unit tests that cover every built-in in both formats, saved templates (ids, files, paper, colour, no subpages, no history) and bad input.page.templates,page.from_template,page.save_templateandpage.remove_template, so the CLI, MCP and the control channel can do the same.docs/commands.mdwas regenerated.Act::PageTemplates,templates_panel, andpageTemplatesinui.inspect. The strings are in the i18n catalogs.folder-format.md(where templates live),gaps.mdandfeature-parity.md.Not built
Previews in the gallery, a default template for new pages, and removing a saved template from the pane (
page.remove_templatedoes it from the engine).Tests
page_templates_add_pages_and_keep_this_page_as_one:cargo xtask cipasses locally.🤖 Generated with Claude Code
https://claude.ai/code/session_01Y4im4nvZvQHZdShop1ff8w