Smarter share sheet to avoid breaking triggers

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

@EduardMe ci sta già lavorando.

Dal 4/3/2023.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug

There are existing Canny requests with ideas about making more of the share sheet extension.
But I'm coming at it here from the plugin perspective, as another knock-on from the introduction of triggers, which necessitate more use of frontmatter, even in daily notes. (#411 is another recent example.)

Currently: the only option from the share sheet extension is to prepend text to a daily note.
Issue: this then stops frontmatter from being frontmatter, stopping triggers from working. Hence this is now closer to a Bug than a Feature Request.

Ideal solution: be smarter at where to insert the text. For nearly 2 years now my plugins, calculate a smart insertion point that comes after any H1 title and initial preamble, and now after any frontmatter too. If you want to see the logic, it's in helpers/paragraph.js::calcSmartPrependPoint.

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

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.

Altre issue di NotePlan/plugins

Tutte le issue di NotePlan/plugins

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.