A simpler use case this time, but oh so useful: wikify! When I copy / paste or use a plugin to pull in data from my calendars, todo apps, or whatever, I usually go an change proper nouns to wiki links. I often also have to add last names / correct project names, adjust topics to match the note names in my vault.
Now, I use Cloud Atlas to do this for me:
wikify.flow.md (973 Bytes)
wikify.flowdata.md (926 Bytes)
As usual, I add the flow and flowdata files to CloudAtlas , reload the plugin. With this before running it, I have Templater expand out the people names by adding this template to the end of the flowdata:
<%*
folderChoicePath = "People"
if (folderChoicePath != null) {
new Notice(`Folder: ${folderChoicePath}`, 5000);
let filesInFolder = new Array();
console.log("folderChoicePath: " + `${folderChoicePath}`)
filesInFolder = app.vault.getFiles().filter(file => file.path.includes(folderChoicePath)).map(tFile=>tFile.basename )
const filesList = new Array();
filesInFolder.forEach((file) => {
filesList.push('\n - ' + file + '')
});
const content = "\n" + filesList.sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase())).join('')
tR+=content
}
_%>
Then I run this command:
