Skip to content

Added projectId, project, and projects templates for filenames.#1664

Open
bendavis987 wants to merge 1 commit intocallumalpass:mainfrom
bendavis987:proj-id
Open

Added projectId, project, and projects templates for filenames.#1664
bendavis987 wants to merge 1 commit intocallumalpass:mainfrom
bendavis987:proj-id

Conversation

@bendavis987
Copy link

@bendavis987 bendavis987 commented Mar 4, 2026

Following the discussion on #1178, I have made changes that are less intrusive.

In the time that's passed, the code around these file name formats has gotten a lot clearer, so I've only added these as custom templates (filename only).

The projectId template essentially only shortens the project name to four characters in caps, and the filename exists check just increments this.

  • {{projectId}}-0 >> TASK-0, TASK-01.

This seems to be the best option without combining the generateCustomFilename and generateUniqueFilename functions. This naming depends on the taskdata in custom and the vault access for the increment. Since this is handled by the custom naming, it also allows different combinations with this projectId. Like my new setting below.

  • {{shortYear}}Q{{q}}{{projectId}}-{{title_snake}} >> 26Q1TASK-my_task.

Would you be interested in unifying these replacements? IE: folderTemplateProcessor is essentially duplicated, but not as clear. I'd be willing to look into this.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant