NotePlan / NotePlan/plugins

Templating: add to both top and bottom of the note from templates

Offen
#411 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@mikeerickson arbeitet bereits daran.

Seit 01.3.2023.

enhancement
Vorherrschende Sprache
JavaScript
Sterne
204
Forks
82
Ø Merge
22 Std. 27 Min.
Gemergte PRs (30 T.)
3

Beschreibung

Since Templating v1.2 we have triggers, and they require special line in frontmatter to turn on.

I have examples now when I want to include turning on a trigger from a template. This means having to use insertion at the top of the new note. But I also want to add some text to the bottom of the note as well.

I can think of two ways to extend Templating to achieve this, and maybe there are others:

  1. Add a special syntax that adds a frontmatter field. If frontmatter doesn't yet exist then it will create it and then add the field and its value.
  2. Add a special syntax that indicates material above is to go at top of note, and material below it at insertion point, or at bottom of file.

As far as I can tell from https://nptemplating-docs.netlify.app/docs/templating-modules/frontmatter-module this isn't yet possible, but I can't see into V2's documentation ...

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.