Enhancement: define filename prefixes on folder level
See original GitHub issueDiscussed in https://github.com/estruyf/vscode-front-matter/discussions/452
<div type='discussions-op-text'>Originally posted by rshmhrj November 6, 2022 Hi all! First – thanks for all the work on this awesome extension. I have found it extremely useful in setting up and maintaining the site. The more I use it, and the more familiar I am getting with the settings, the better it gets!
Context:
I have two sections in my Hugo site: posts
and references
. From the front matter dashboard, clicking create content
pops up a question asking which folder to add the content to, what to title it, and then it auto creates the file based on a template.
It also slugifies the title and prepends the date for the filename.
For posts
, I like the auto dating behavior. For references
, I want to disable it.
Question
Is there a config setting to selectively enable/disable the auto-dating based on which folder is selected?
Obviously, the “workaround” is to create it and then manually delete the date portion of the filename (which takes 2 seconds), but just wondering if such a feature / configuration exists. I searched through the existing issues and discussions , but didn’t find anything specifically related to the folder choice.
Thanks again!</div>
Issue Analytics
- State:
- Created 10 months ago
- Reactions:1
- Comments:10 (5 by maintainers)
This is now available in the beta for you to try out by setting the
filePrefix
on the folder setting.Yes! Tested it and it works with the bundle and with/without dates as expected!
Thanks so much @estruyf !! 😄