Skip to content

feat: Filename Options (projectId)#1178

Closed
bendavis987 wants to merge 3 commits intocallumalpass:mainfrom
bendavis987:dev-filename
Closed

feat: Filename Options (projectId)#1178
bendavis987 wants to merge 3 commits intocallumalpass:mainfrom
bendavis987:dev-filename

Conversation

@bendavis987
Copy link

@bendavis987 bendavis987 commented Nov 20, 2025

Background

I made some custom changes for my workflow and figured I could share if you're interested. The point of this PR is really to gauge your interest, and I can polish them up if so. I also wasn't sure if you had already finished: #791 or #59, so I did those as well while I was in these files.

Filenames move to General Tab

I didn't know the file name configuration was an option initially. This was part of why I started making changes. I can revert this if you prefer it in appearance, but it just didn't seem like it fit there. It should be in the same place as custom folder structure in my opinion.

Filename context vs taskData structure

I apologize if this is bad practice. I don't know much about TS and it's conventions, but this seemed like it made more sense to me. Maybe filenamecontext should extend it. I'm not sure. Probably worth a conversation.

Actually what I wanted done (New Filename Option: projectId)

I really wanted to format the task names similar to JIRA ie: TASK-1234, and if it is related to a project, then it'll get the id from the project. PROJ-1234. This is a bit difficult since there currently isn't a tracker for the file numbering incrementing. I decided to just piggyback off of the duplicate name check for now. For a full feature, this should probably get a menu option to configure starting number, and it can be stored there / in the obsidian workspace somehow.

Related:

Other notes

I had a few questions while debugging. Like I broke the translations somehow, I need to figure that out. And the projects don't seem to just be the project name. I can't cut the strings consistently at the same place.

ben added 3 commits November 19, 2025 23:27
+Added projectId abbreviations style. ie: PROJ-1234.
+Added UUIDv4 variable to custom options.
+Added short year variable to custom options.
@bendavis987 bendavis987 changed the title Filename Options (projectId) feat: Filename Options (projectId) Nov 20, 2025
@callumalpass
Copy link
Owner

Thanks for sharing this, @bendavis987 — the JIRA-style naming is an interesting workflow idea.

As you noted in the PR description, this is still a work in progress (broken translations, inconsistent project name parsing). There are also some structural changes (moving settings between tabs, changing the FilenameContext/taskData relationship) that I'd want to think through carefully.

I'm going to close this for now since it's not quite ready. If you'd like to revisit it later with a more focused scope (just the projectId filename variable, without the settings reorganization), I'd be happy to take another look.

Sorry for the long wait on feedback!

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.

2 participants