Skip to content

[Bug]: If {{currentNotePath}} contains characters that look like date tokens, TaskNote makes a new folder. #2335

Description

@hikatamika

Bug Description

So I have a project called AMM-01.md in a matching folder named AMM-01. It's an acronym.

My Default Tasks Folder is set to {{currentNotePath}}. I expect subtasks to be in AMM-01 (the folder) alongside AMM-01.md (the project).

Because the name of the project has MM in it, I think TaskNotes goes "a month! I know what to do with that!" and makes a sister-folder to AMM-01 named A09-01 because it's September right now.

I suppose what I would expect is for TaskNotes to only do the token replacing for stuff I put in the Default Tasks Folder rather than doing it for characters matching date tokens coincidentally being parts of the path itself.

Steps to Reproduce

  1. Have a folder that unintentionally has characters that correspond to a date token.
  2. Have Default Tasks Folder set to {{currentNotePath}}
  3. While looking at an .md within the folder from 1., make a new task.
  4. TaskNotes makes a new folder, with the characters in the path name that corresponded to a date token being replaced with the corresponding date numbers.

TaskNotes Debug Info


Affected Task Frontmatter

Relevant Bases File Content

Relevant Settings or Customizations

No response

Console Errors or Logs


Screenshots or Screen Recording

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions