You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Remove logging in some tests
* Skip sanitizing tests until we know what eduard is doing with frontmatter escaping
* Do not write out blank/empty template render
* improve note getting
* fix await bug. refactor promptKey to remove varName
* add promptKey tests
* Prompts refactor
* Add note.openTasks and other similar funcs
* promptTag and promptMention
* Create AddingNewPromptCommands.md
* fix empty tag on promptKey
* await bugs fixed
* URL changes
* NTemplating basically working; needs better error handling
* Improvement in template syntax checking - working well
* templating linting wip
* more wip JSON rewriting bug persists
* Adding windsurf and claude to ignores
* fix smart-quotes replacement
* add getNote
* fixed some of the errors
* test cleanups
* real world tests in progress
* add ability to pass newNoteTitle or other args to templateNew
* Add ability to pass the newNoteName to templateNew
* Update change log with all the fixes
* Fix BasePromptHandler
* Fix JSON validation tests. break out to other file.
* Flow clean-ups
* Fix More Templating Tests
* removing json validation entirely
* Fix a bunch of tests
* More Templating test fixes
* Fixes to include tag
* Fix Prompt Edge Cases
* Lots of improvements/clean-ups
* Error messaging improvement
* various promptDate fixes
* Prompt fixes WIP
* Fix to single var prompts not showing the message
* Various bug fixes
* wip allow for ESC to stop execution
* add journalingQuestion and tighten prompt tests
* Adding Templating API endpoint checks
* remove double await in bible verse
* Remove the zillions of realworld tests which are not needed
* Fixed some TemplateRunner edge cases
* Making templatejs code more resilient
* Add warning about ternaries etc opening a line
* date module fixes
* Lots of tests and clean-ups
* Fix a test
* fixes to now/timestamp and error tweaks
* Adding tasks module
* Fix for ignoring prompts in comment tags
* wip fixes for prompt cancels
* test passing after escape fix
* fix some edges
* Fix promptKey
* promptKey hand-enter escape stops prompts now
* Fix for tag frontmatter regex test
* new test for default value parsing
* Fix for parameter parsing bug
* Add error handling for mismatched tags
* clean up logs
* Fix async bug
* Added JSDOC and inline comments prior to refactor
* base refactor
* Break down render()
* All tests including integration tests are passing
* Tests all pass and code builds
* Bug fixes in rendering - still userData bug
* fix system time bug
* Edge fix for when prompts are chosen in promptKey
* Remove console.logs
* Update datePicker warning message
* remove incremental rendering
* Add originalScript parameter to TemplatingEngine for better error reporting - Modified TemplatingEngine constructor to accept originalScript parameter - Updated error handling to include original script in error messages - Updated all TemplatingEngine instantiations to pass original template data - Updated all test files to maintain compatibility with new constructor signature
* Using AI for error suggestions
* Templating errors should work when offline also
* Fix edge where fm had error but body was plain text
* TemplateEngine refactor/split
* adding weather logs
* fix
* Differentiate logs
* log reduce
* Improve newline slurping for variable settings
* Lessened logging
* Some log improvements
* Fixed a lot of edges in prompts
* Fix remaining tests & remove logs
* Reduce test logging
* Add top level NP objects to the AIAnalyzer prompt
* fix multiline JS which was failing
* Fix for bug with comment tags
* Update templateProcessor.test.js
* MeetingNotes almost working with DataStore.invoke
* rename renderTemplate duplicate named function
* Adding terser back to reduce rolled up size of scripts
* Added eventDate() and eventEndDate() to render pipeline
* removed redundancy in data/methods props
* move getValuesForKey to frontmatter module
* Add frontmatter module
* change frontMatter to frontmatter (no cap)
* Fix frontmatter module bug
* rename frontMatter to frontmatter in other plugins
* fix stringUtils bug
* Add tests for stringUtils
* Optimize looking for prompts
* Fix 8601date bug that was localizing
* Update CHANGELOG.md
* daysUntil will now return negative dates
* Update StandardPromptHandler.js
* remove example promptList and cance lon promptDate ESC
* clean up - remove extra modules directory
* Fix circularity caused by getTags
* add datePicker back for legacy
* Fix invokeCommand/isCommandAvail bug
* ensure moment-with-locales is the only one used
* Adding momentWrapper to deal with NP weeks
* Abandoning momentWrapper - did not work
* Test for noteplan week formatting
* Fix startOfWeek and endOfWeek etc to use NP week
* Delete DateModule_Documentation_Updates.md
* add <select foldername
* add auto-updating Templating
* Update CHANGELOG.md
* Skip tests because of mock
* Add <select
* misc doc update
* Fix multi-line JS in a tag bug
* add stoicQuote
* added getRandomLine
* Some improvements to AI error analysis
* Changelog update
* Allow include with template strings
* fix frontmatter edge cases
- Fix bug where frontmatter was not being processed correctly if it started with "---"
- Fix bug where templatejs code blocks were not being processed correctly and no other tags
- Fix bug where template with frontmatter (--) was not being processed when it had no other templating tags
* Update CHANGELOG.md
* Additional logging
* fix curly quotes
* Fix renderTemplate() bug that was showing frontmatter in result
* Fix user edge cases with <%_
* Add test for multi-line slurps
* Add web.services to await funcs list
* Add longer timeout bc advice was timing out
* Fix import casing
* Fix error in rollup for minify
* Change error messaging for web services
* Add hard-coded advice
* Fix TemplateRunner Bug
* Move blank note with folder in template fm
* Remove some logs
> Retrieves open tasks (including their sub-tasks/children) from a specified note (daily, weekly, monthly, quarterly, yearly calendar note, or a project note). It ensures each open task paragraph and its children have a block ID and returns a string with each task on a new line.
30
+
31
+
-`sourceIdentifier` - (string) Specifies the note to retrieve tasks from. This can be:
32
+
-`'<today>'`: Fetches tasks from today's daily note.
33
+
-`'<yesterday>'`: Fetches tasks from yesterday's daily note.
34
+
- An ISO 8601 date string for a specific calendar note:
35
+
- Daily: `"YYYYMMDD"` (e.g., `"20230410"`) or `"YYYY-MM-DD"` (e.g., `"2023-04-10"`)
36
+
- Weekly: `"YYYY-Www"` (e.g., `"2023-W24"`)
37
+
- Monthly: `"YYYY-MM"` (e.g., `"2023-10"`)
38
+
- Quarterly: `"YYYY-Qq"` (e.g., `"2023-Q4"`)
39
+
- Yearly: `"YYYY"` (e.g., `"2023"`)
40
+
- The title of a project note (string).
41
+
42
+
-`-> result` - (Promise<string>) Returns a promise that resolves to a string containing all open tasks and their sub-tasks from the specified note, each on a new line. If the note is not found or contains no open tasks, it resolves to an empty string.
43
+
44
+
**Behavior Notes:**
45
+
46
+
* The method uses `getOpenTasksAndChildren` to identify open tasks and their hierarchical children.
47
+
* It automatically adds block IDs to any open task or child task paragraph that doesn't already have one. This modification happens directly in the NotePlan data store.
48
+
* If multiple project notes match a given title, the method will use the first one found and log a debug message.
49
+
50
+
**Examples**
51
+
52
+
The following example retrieves open tasks from today's daily note:
Copy file name to clipboardExpand all lines: dwertheimer.DateAutomations/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ Note: currently cannot be customized. If you desperately need it to be customiza
42
42
- By default, the format of dates and times is "en-US" format.
43
43
- By default, the `/formatted` command uses `%Y-%m-%d %I:%M:%S %P` (see `Templates` use below)
44
44
45
-
*Note: You can create your own formats in templates installing the `Templating` plugin and [following the directions](https://nptemplating-docs.netlify.app/docs/templating-modules/date-module)*
45
+
*Note: You can create your own formats in templates installing the `Templating` plugin and [following the directions](https://noteplan.co/templates/docsdocs/templating-modules/date-module)*
46
46
47
47
If you install this plugin and run `/dp` command, you will get some ideas for dateStyle and timeStyle settings
0 commit comments