Fix: date/time-trigger syntax leaking into filename on "New note from Card" - #1222
Open
yhbarve wants to merge 1 commit into
Open
Fix: date/time-trigger syntax leaking into filename on "New note from Card"#1222yhbarve wants to merge 1 commit into
yhbarve wants to merge 1 commit into
Conversation
…card Fixes community-archive#1137. - The New note from card handler sanitized embeds, wikilinks, and tags when building the new note's filename, but never stripped date/time- trigger syntax (e.g. @{2026-07-15}). That raw syntax leaked directly into the generated filename and into the wikilink text inserted back into the card. - Fixed by stripping date/time tokens specifically for filename generation. - Also preserves the date/time on the card itself: rather than replacing the entire raw title line (date included) with the new link, only the date/time-free portion of the title is now matched and replaced, so the date badge survives right next to the link instead of being silently deleted.
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 a bug where dates/times leak raw
@{...}syntax into filenames (and get silently deleted from the card) when using "New note from card."Fixes #1137.
The bug
The "New Note from Card" handler sanitized embeds, wikilinks, and tags when building the new note's filename, but never stripped date/time-trigger syntax (e.g.
@{2026-07-15}). That raw syntax leaked directly into the generated filename and into the wikilink text inserted back into the card.Before (bug):

The fix
date-trigger/time-triggersettings.After (fix):

Testing
@date/time triggers and custom ones (e.g.@@@,$$)link-date-to-daily-noteis enabled