Smarter share sheet to avoid breaking triggers
@EduardMe arbeitet bereits daran.
Seit 04.3.2023.
- 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
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.