Commit Graph

12 Commits

Author SHA1 Message Date
c8aabc058a Updated .gitignore 2025-12-02 11:44:31 +01:00
74ba1c46d8 Add badges to README 2025-11-26 18:36:19 +01:00
53348963a4 Remove release files from version control 2025-11-26 18:27:04 +01:00
cb4763982e Remove .claude directory from version control 2025-11-26 18:26:49 +01:00
2aa79b1a39 v1.1.0 - Polish and critical bug fixes
## Bug Fixes
- Fixed critical issue where clicking + on one counter would update multiple counters
- Fixed page scrolling to top when clicking counter buttons
- Fixed counter widgets causing Obsidian to crash or behave erratically
- Fixed counters not working independently in edit mode

## Improvements
- Added support for negative numbers (counters can now go below zero)
- Improved counter targeting using position-based tracking in edit mode
- Improved counter targeting using section info in reading mode
- Better event handling to prevent unwanted side effects
v1.1.0
2025-11-26 18:21:24 +01:00
c908cc42b9 Fix counter to update only clicked instance
- Track each counter by its original text instead of label
- Use indexOf to find and replace specific counter occurrence
- Pass originalText to createCounterElement method
- Update both MarkdownPostProcessor and Live Preview widget
- Prevents all counters with same label from updating together

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
v1.0.0
2025-11-26 10:58:09 +01:00
f5a3047417 Add Live Preview support and reorder counter elements
- Move buttons to right side of number (number, -, +, label)
- Add CodeMirror ViewPlugin for Live Preview rendering
- Counter now works in edit mode (Live Preview)
- Create CounterWidget for editor decorations
- Use Decoration.replace to render counters in editor

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 10:42:35 +01:00
0790105aeb Fix counter increment logic and improve button styling
- Store currentValue in mutable variable to track state properly
- Counter now increments/decrements correctly beyond 1/-1
- Reduce button size from 24px to 16px
- Reduce font size and spacing for more compact appearance
- Improve vertical alignment with inline text
- Fix regex in updateSource to match new pattern

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 10:38:35 +01:00
634f219376 Fix counter rendering in Obsidian
- Remove start-of-line anchor from regex to match anywhere in text
- Improve text node processing to handle inline counters
- Simplify markdown post processor logic
- Remove unused editor-change event handler

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 10:34:33 +01:00
7152027ee3 Fix TypeScript errors and build plugin
- Add proper type annotation for node variable
- Add null check in forEach callback
- Plugin now builds successfully

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 10:21:46 +01:00
8a1922e4ac Fix counter syntax to use empty parentheses
- Change syntax from ~ (number) to ~ ( )
- Counter now starts at 0 when using empty parentheses
- Update README with correct syntax examples

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 10:18:40 +01:00
2588e72b39 Initial commit: Counter plugin for Obsidian
- Add counter syntax: ~ (number) label
- Implement interactive +/- buttons
- Add CSS styling for counter UI
- Include build configuration and dependencies
2025-11-26 10:14:58 +01:00