Looking for some assistance
I work with clients from different companies. I keep meeting notes and people notes.
On my meeting notes, I have meeting participants and I enter here the participants (which exist on people notes).
When I create a people note,
-the title of the note is the person’s name “John Smith”
-I fill out the company name. Example “Contoso”
-I set the alias to “John Smith (Contoso)” ({file name} ({Company})
So on my meeting notes (under participants) I would enter the alias as it is best for me to see the company name here as opposed to simply the name
In other words you want to automatically generate properties when creating a note. This can be done using Templater, Linter, Shell commands and QuickAdd (inline scripts). Obviously all of them are advanced community plugins so crafting the solution will take up time even by experienced users.
Thanks
So I am kind getting the hang of it
I was able to put together a rudimentary way to do this
My current flow,
During a meeting I realized I need to add a participant, I start typing and if the person exists use that entry. Otherwise type name as text
Right after the meeting, see participant list for participants that are not wikilinks but text. I manually add [[ and ]] to make it a wikilink
I click the wikilink and create a blank note
Use templater to create a people note (has a couple of templater scripts - created from current date and name from file name
I manually enter the company name
I manually compose alias with name - company name
For step 6
a. I can not use templater normally for alias since it would be executed when I create the note when company is not populated
b. Instead of step 6, I can copy / paste the templater script on the alias field and execute right there
So far I have only used templater when creating a new file but it seems you can use templater to execute a script on an existing note and modify carefully certain fields
I looked that thread. Function app.vault.modify was used to modify the whole file. This is very clunky solution and you should use app.fileManager.processFrontMatter instead. In your case you need to programmatically ask values when creating your file because otherwise you need to create your file manually and then apply the shortcut. You can ask values using Modal form community plugin. In this case the code look like this
In above asFrontmatterString() is provided by the plugin. The template/code is used to generate full frontmatter and I think you should use app.fileManager.processFrontMatter to modify existing frontmatter.