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

request: option to edit the template for new notes #9

Closed
AngelusDomini opened this issue Jun 6, 2021 · 5 comments
Closed

request: option to edit the template for new notes #9

AngelusDomini opened this issue Jun 6, 2021 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@AngelusDomini
Copy link

The New Note feature of this plugin works well with a particular use-case of mine, so I appreciate it, but it seems that the template for it can't be edited. I'm hoping that you would allow editing of the template perhaps via the options, like what you see in the Note Refactor plugin.

Similarly, maybe also have the option to change the default file name, like perhaps the user wants to automatically add an emoji or something like that, or the option to have the word's first letter to be capitalized (as it currently is) or not (what I personally prefer).

Hope these are doable and easy to implement, don't want this simple request to cause too much trouble on your part. Thank you so much for what you do!

@phibr0
Copy link
Owner

phibr0 commented Jun 6, 2021

image
Is this what you need?

@phibr0 phibr0 closed this as completed in c093a15 Jun 6, 2021
@phibr0 phibr0 self-assigned this Jun 6, 2021
@phibr0 phibr0 added the enhancement New feature or request label Jun 6, 2021
@phibr0
Copy link
Owner

phibr0 commented Jun 6, 2021

Hey!
I added the Features you requested and they were just released in Version 2.6.0!

@AngelusDomini
Copy link
Author

Yes, that's great!
And wow that was fast, tested it just now and so far seems to work really well. Looks like I didn't cause you too much trouble c:
Thank you so much, I really appreciate it! 🙏

@AngelusDomini
Copy link
Author

AngelusDomini commented Jun 6, 2021

Ah, one comment if you don't mind, it's nit picky tho lol

Even with the capitalize file name option turned off, the title of the {{word}} in the note itself is still capitalized. Sorry for not mentioning this beforehand 🙏

The purpose of this is to differentiate between proper and common nouns, where most of the nouns from the dictionary are common nouns (hence why I prefer the titles to be lowercase). It can also be a distinction from these dictionary notes from my other terminology-based evergreen notes in Obsidian, where the latter would be capitalized.

Personally, I can just replace {{word}} from the template with Templater's <% tp.file.title %> function, and that would do. But perhaps some users may want want to use the suffix/prefix feature plus have a lowercase {{word}} title in the note and/or don't use Templater, but I'm not sure if there will be any.

Anyway, just thought I'd let you know. Again, it's really nit picky, totally up to you if you want to implement it or not. Thank you once again :)

phibr0 added a commit that referenced this issue Jun 6, 2021
@phibr0
Copy link
Owner

phibr0 commented Jun 6, 2021

Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants