feat: custom inline tasks folder path file names #1292
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.
Pull Request: Enhanced Inline Task Conversion with Dynamic Folder Paths and Custom File Names
Background
The Problem:
I wanted to quickly jot down tasks in my daily notes and convert them to TaskNotes, but they would land in generic folders with generic filenames, requiring manual reorganization.
Example task in daily note:
What I needed to happen automatically:
#project/Microsoft→ save to(4) Projects/Microsoft/Tasks/2025-11-28 - Fix bug in repo.mdfor chronological sorting"Fix bug in repo"in frontmatter (no date prefix)#project/tags → route to(4) Projects/RD/Tasks/This PR makes it possible:
Benefit: Quick task capture → automatic organization by project with date-based filenames. No manual filing needed.
Summary
Adds powerful customization for inline task conversion through two main feature areas: dynamic folder organization with JavaScript expressions and relative paths, and custom file naming with template variables.
Part 1: Folder Organization Features
1. Template Variables in Folder Paths
Use
{{variable}}syntax for dynamic folder organization.Examples:
2. JavaScript Expressions in Folder Templates
Use
${...}syntax for conditional logic and complex transformations.Examples:
3. Relative Path Support
Navigate folders relative to the current note's location.
Examples:
Part 2: File Naming Features
Custom File Name Templates
Define dynamic file naming patterns using template variables and JavaScript expressions. Enabled via toggle in settings.
UI Features:

Template Variables:
JavaScript Expressions:
Documentation
inline-tasks-folder-for-converted-tasks.md(314 lines): Folder organization guide with 13 examplesinline-task-filename-for-converted-tasks.md(413 lines): File naming patterns and title transformationsinline-tasks.mdwith links to new guidesTemplate Variables Available
Date & Time:
{{year}},{{month}},{{day}},{{date}},{{time}},{{timestamp}},{{hour}},{{minute}},{{second}},{{week}},{{quarter}},{{monthName}},{{monthNameShort}},{{dayName}},{{dayNameShort}}Task Properties:
{{title}},{{status}},{{priority}},{{due}},{{scheduled}},{{recurrence}},{{timeEstimate}},{{archived}},{{dateCreated}},{{dateModified}}Arrays:
{{tags}},{{contexts}},{{projects}}(auto-join with/or use as arrays in${...})JavaScript: All variables available in
${...}expressions with full array/string methodsTechnical Implementation
processFolderTemplate()for consistencyNew Settings:
Testing
1,026 new test cases covering:
Files Changed
15 files, ~2,100 lines added
Core:
TaskService.ts,folderTemplateProcessor.ts,filenameGenerator.ts,helpers.ts,settings.ts,defaults.ts,i18n/resources/en.tsUI:
featuresTab.tsTests:
helpers.test.ts,folderTemplateProcessor.test.ts,filenameGenerator.custom-filename.test.ts,TaskService.test.tsDocs:
inline-tasks-folder-for-converted-tasks.md(NEW),inline-task-filename-for-converted-tasks.md(NEW),inline-tasks.md(updated)