NotePlan / NotePlan/plugins

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

Aperta
#411 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@mikeerickson ci sta già lavorando.

Dal 1/3/2023.

enhancement
Lingua principale
JavaScript
Stelle
204
Fork
82
Merge medio
22h 27m
PR unite (30g)
3

Descrizione

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 ...

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.