Open maikol-solis opened 2 months ago
Thank you @maikol-solis! I think this is worth experimenting with. Maybe we want to remove accents from the slug, though I wonder what sort of edge cases we might encounter.
If there are others who find this useful, we can include it in the Denote manual.
For what it's worth, a relevant discussion happened a while ago in SourceHut mailing list with some code change suggestion, here.
I do not know if the code suggested then is still applicable -- there seems to have been a lot of refactoring around file name creation.
Just for your information.
Thank you @maikol-solis! I think this is worth experimenting with. Maybe we want to remove accents from the slug, though I wonder what sort of edge cases we might encounter.
This function has been in the org-roam repo for a while, so maybe some of those edge cases are already fixed or at least reported.
If there are others who find this useful, we can include it in the Denote manual.
It's a good start.
The main reason I use this function is to have some consistency when I write Spanish titles or keywords. It could be helpful for people who write in other Latin languages, such as French, Italian, Portuguese, etc.
For what it's worth, a relevant discussion happened a while ago in SourceHut mailing list with some code change suggestion, here.
I do not know if the code suggested then is still applicable -- there seems to have been a lot of refactoring around file name creation.
Thanks for the pointer.
Hi, I just want to share this snippet of code if someone finds it useful. I just copied-pasted the same function from org-roam (https://github.com/org-roam/org-roam/blob/8667e441876cd2583fbf7282a65796ea149f0e5f/org-roam-node.el#L170)
It changes titles like
to
This is the code.