Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to automatically rename new note to kebab-case #1263

Closed
limbonaut opened this issue Jul 26, 2023 · 2 comments
Closed

Option to automatically rename new note to kebab-case #1263

limbonaut opened this issue Jul 26, 2023 · 2 comments

Comments

@limbonaut
Copy link

Is your feature request related to a problem? Please describe.

Would be nice to have an option to name the file in kebab-case when running Create New Note.

Found an issue #544 that was closed due to it being not possible to implement.
However, Markdown Notes extension has similar feature implemented. Perhaps, it could be given another look?

Describe the solution you'd like

When running "Create New Note" with a tile "My New Note" I would like a file to be named my-new-note.md.

Describe alternatives you've considered

Renaming the file manually - but it could be automated.

Screenshots or Videos

No response

@riccardoferretti
Copy link
Collaborator

Have you looked into using FOAM_SLUG?

https://github.com/foambubble/foam/blob/06a5988a52176bacb532372171d88400a871df5a/docs/user/features/note-templates.md

@limbonaut
Copy link
Author

Thanks! Made a template like this:

---
foam_template:
  filepath: $FOAM_SLUG.md
---
# $FOAM_TITLE

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

No branches or pull requests

2 participants