NotePlan / NotePlan/plugins

Smarter share sheet to avoid breaking triggers

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

@EduardMe arbeitet bereits daran.

Seit 04.3.2023.

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

Beschreibung

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.

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.