TIL: Adding custom scripts with templater

I learned how we can create custom scripts in Obsidian with templater and now it opens another set of possible things that I can do with ...

I learned how we can create custom scripts in Obsidian with templater and now it opens another set of possible things that I can do with obsidian.

How to do it

Create a script with whatever you want to do

For my case I needed to strip first character of File named with an @ which I usually use for naming humans/companies/organizations.

function humanSnip(human) {
	const fileName = human.file.title;
	return fileName.slice(1, fileName.length);
}
module.exports = humanSnip;

Additional Metadata

Suggested by:: @Ximena