Add two new commands:
- 'Embed star counts in current note': writes star counts (e.g. ⭐ 1.2k)
directly into the markdown after each GitHub link
- 'Remove embedded star counts from current note': strips them out
Running embed again updates existing counts. This makes star counts
visible to anyone reading the raw markdown outside Obsidian.
Co-Authored-By: Oz <oz-agent@warp.dev>
Implement CodeMirror 6 ViewPlugin and WidgetType to display GitHub
star counts in Obsidian's Live Preview (Editing View) mode, in addition
to the existing Reading View support via MarkdownPostProcessor.
- StarsWidget (WidgetType): renders star count badge, uses cache for
instant display and falls back to async API fetch with loading state
- StarsViewPlugin (ViewPlugin): scans visible ranges for GitHub URLs
using regex, places widget decorations after links
- Widget placement accounts for markdown link syntax [text](url) by
positioning after the closing parenthesis
- Registered via registerEditorExtension in onload()
Co-Authored-By: Oz <oz-agent@warp.dev>