Notes / Prepend Text To A Note

Screenshot of the action

Prepends a given text to the beginning of a note, with the option to add the text before any front matter or after.

This action will throw an error if the specified note doesn't exist, so it's best to use it after the "Check For Existence Of Note" action has determined that it does exist.


Available Options

Ensure newline

If enabled, a line break will be added to the text if it does not already have one. Useful if you have a piece of text that does not have a line break at the end, but should.

Ignore front matter

If enabled, the text will be added to the top of the note, before any front matter.


Examples

Suppose you have a note with the following content:

---

alias: another-name

tags: example

---

Productivity Fans

Call the action with the text "Hello", and the result will be:

---

alias: another-name

tags: example

---

HelloProductivity Fans

Starting from the same example, calling the action with the text "Hello" with the option "Ensure newline" active, the result would look like this:

---

alias: another-name

tags: example

---

Hello

Productivity Fans

Using from the same example, calling the action with the text "Hello" and the option "Ignore front matter" enabled, the result would look like this:

Hello

---

alias: another-name

tags: example

---

Productivity Fans

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.