Commit graph

11 commits

Author SHA1 Message Date
flyingnobita
cd47321595
feat: add commands to embed/remove star counts in markdown files
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>
2026-03-18 17:01:15 +08:00
flyingnobita
50e5262619
chore: bump version to 1.1.0
Co-Authored-By: Oz <oz-agent@warp.dev>
2026-03-18 16:44:41 +08:00
Flying Nobita
dd095634ee
Merge pull request #3 from flyingnobita/feat/live-preview-support
feat: add Live Preview support for GitHub star counts
2026-03-18 16:43:34 +08:00
Flying Nobita
6dcd0387f5 feat: add Live Preview support for GitHub star counts
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>
2026-03-18 07:44:31 +00:00
flyingnobita
e7942c34dc 1.0.1 2025-06-04 15:42:54 +08:00
flyingnobita
72b60b9443 chore: Update node packages 2025-06-04 15:36:04 +08:00
flyingnobita
61c0f53c69 fix: Update to change in reading json response 2025-06-04 15:34:22 +08:00
flyingnobita
2ce228c685 fix: Fix 1) Remove Obsidian from README.md 2) Sentence case 3) use requestURL from Obsidian API 2025-03-30 13:43:13 +08:00
flyingnobita
9dac346856 fix: Remove plugin name from commands 2025-03-15 13:46:50 +08:00
flyingnobita
4dab1a7a9e Remove obsidian from plugin-id 2025-03-15 01:47:15 +08:00
flyingnobita
3e33be66e7 Initial commit 2025-03-15 01:35:24 +08:00