From a list of titles create a new note for each one #1408
Unanswered
leebarkerlbrkr
asked this question in
Help
Replies: 1 comment 1 reply
-
Here's an example of taking each line in your selection and creating a new note from that selection. If it isn't exactly what you want, it should be a good starting point. <%*
const lines = tp.file.selection().split("\n");
for (let line of lines) {
await tp.file.create_new("[[Template to create new note with]]", line);
}
tR += tp.file.selection();
-%> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I hope you can guide me with this.
Id like to select all items in a list and to use a templater hotkey to create a new note for each one.
At the moment Im making a new note one by one and I have hundreds of tutorials in the list.
i know this is the "great pain" of setting an Obisidian repository up but I was hoping I could find some automation to help.
Thanks to anyone who can help
Lee
Beta Was this translation helpful? Give feedback.
All reactions