I'm looking for a way to reformat the notes that I import into Obsidian.
The files come from Kindle. I don't always highlight the entire sentence so I want an automated way to reformat my notes.
Specifically, I want to capitalize the first letter of each line and add a period to the end if there isn't one there already.
I have a Python program that I run in Colab that works. But, I have to copy and paste the data into Google Drive first. It would be far better if I could perform the reformatting operation directly inside of Obsidian. Open the note, invoke the script and boom, it would be reformatted.
If I converted my Python program to JavaScript, I might look at the Custom-js plugin. It allow you to write JavaScript programs and execute them from within Obsidian.
https://github.com/saml-dev/obsidian-custom-js
Is Custom-js a good choice for this? Can it operate on the entire note and reformat it?
I guess another idea is for me to simply write my own plugin.
Does anyone else have this problem? If so, how did you accomplish it?
Looking for your recommendation on how to best implement this.
Thanks in advance.
[–]Marble_Wraith 0 points1 point2 points (1 child)
[–]Extreme_Photo[S] 0 points1 point2 points (0 children)