No description
Find a file
Filip Noetzel 2ea7af7bbd Add setting for customizable emoji support in ratings
Added InteractiveRatingsSettings interface, settings tab, and dynamic symbol pattern updates. Users can now customize supported emojis through plugin settings.

Default: 🎥🏆💎🔥🎯🚀💰🎖️

Fix regex detection bug for low ratings (1-2 stars)

Modified regex to detect 1+ symbols instead of 3+, and updated editor logic to intelligently handle short patterns with rating text or full-only symbols. Fixes issue where reducing ratings to 1-2 stars made them uneditable.

Simplify pattern detection logic - remove complex special cases

Replaced complex logic with simple rule: if no rating text, require 3+ symbols to avoid false positives. If rating text exists, any symbol count is valid. This generic approach handles all cases without special full-only symbol logic.

Remove hardcoded configurable emojis from constants.ts since they're now managed through settings
2025-06-10 08:22:36 +02:00
.github/workflows re-enable npm build for github actions 2025-03-20 07:01:23 +01:00
src Add setting for customizable emoji support in ratings 2025-06-10 08:22:36 +02:00
.bumpversion.toml Bump version: 1.0.3 → 1.0.4 2025-06-09 09:41:24 +02:00
.gitignore move to typescript 2025-03-20 06:59:03 +01:00
codemcp.toml setup codemcp.toml 2025-06-08 10:45:54 +02:00
esbuild.config.js Add CodeMirror editor extension to make ratings interactive in editing mode 2025-06-08 10:45:54 +02:00
LICENSE Initial commit 2025-03-17 17:35:08 +01:00
manifest.json Bump version: 1.0.3 → 1.0.4 2025-06-09 09:41:24 +02:00
package-lock.json feat: use esbuild for greating a single output file named main.js 2025-03-31 22:05:59 +02:00
package.json Bump version: 1.0.3 → 1.0.4 2025-06-09 09:41:24 +02:00
README.md Add support for colored hearts 2025-06-09 21:28:59 +02:00
screencast.gif add README + screencast 2025-03-17 17:30:05 +01:00
styles.css Add support for full-only rating symbols like 🎥 2025-06-09 22:54:41 +02:00
tsconfig.json move source to src/*.ts 2025-03-31 22:05:59 +02:00

Interactive Ratings Plugin for Obsidian

Add interactive rating symbols to your notes that update with a click.

Usage

demo of the Interactive Ratings Plugin for Obsidian

Type any supported symbol sequence (minimum 3 identical symbols) in your note. When you hover over these symbols in edit mode, clicking on one of the symbols allowing you to update the rating.

Installation

  1. In Obsidian settings, go to Community Plugins
  2. Disable Safe Mode
  3. Search for "Interactive Ratings"
  4. Install and enable the plugin

Rating Text (optional)

Add numerical ratings with these formats:

  • ★★★☆☆ - Only symbols, no rating text
  • ★★★☆☆ 3/5 - Fraction without parentheses
  • ★★★☆☆ (3/5) - Fraction in parentheses
  • ★★★☆☆ 60% - Percentage
  • ★★★☆☆ (60%) - Percentage in parentheses

The numerical rating updates automatically when you change the symbols.

Supported Symbol Sets

Symbol Type Full Empty Half Examples
Stars ★★★☆☆ (3/5) Book rating
Star Symbols ✦✦✦✧✧ (3/5) Stargazing
Moon Phases 🌕 🌑 🌗 🌕🌕🌗🌑🌑 (2.5/5) Lunar observation
Circles ●●●○○○○○○○ 3/10 Movie review scale
Squares ■■■□ (3/4) Recipe difficulty
Triangles ▲▲▲▲▲△△△△△△△ 5/12 Hiking difficulty
Red Hearts ❤️ 🤍 ❤️❤️❤️🤍🤍 (3/5) Celebrity crush
Orange Hearts 🧡 🤍 🧡🧡🧡🧡🤍 80% Sunset addiction
Yellow Hearts 💛 🤍 💛💛🤍🤍 2/4 Wizard vibes
Green Hearts 💚 🤍 💚💚💚🤍🤍🤍 50% Plant guilt
Blue Hearts 💙 🤍 💙💙🤍🤍🤍 (2/5) Ocean yearning
Purple Hearts 💜 🤍 💜💜💜💜🤍 4/5 Unicorn belief
Black Hearts 🖤 🤍 🖤🖤🖤🤍 75% Villain sympathy
Brown Hearts 🤎 🤍 🤎🤎🤍🤍🤍 (2/5) Chocolate dependency
Block Progress ███▁▁▁ (3/6) Project completion
Braille Dots ⣿⣿⡇⣀⣀⣀⣀⣀⣀⣀ 2.5/10
Solid/Empty Circles ⬤⬤⬤○○○○○○○○○ 25% Budget spending
Solid/Empty Squares ■■■□□□□ 3/7 Weekly progress
Dotted Squares ▰▰▰▱▱▱▱▱▱▱ (3/10) Task complexity
Filled/Empty Rectangles ◼◼◼▭ 75% Reading progress
Vertical Bars ▮▮▮▮▮▮▯▯▯▯▯▯ 50% Battery level
Bold Circles ⬤◯◯ 1/3 Quick product review
Black/White Circles ⚫⚫⚫⚫⚫⚪⚪⚪⚪⚪ (5/10) Coffee strength
Block/Light Shade ███░░░░░░░ 30% Download progress

Use Cases

  • Book/Media Reviews: ★★★★☆☆☆☆☆☆ Just okay, 4/10
  • Habit Tracking: Exercise: ●●●○○○○ (3/7) days this week
  • Project Status: Client project: ████████░░ 80% complete
  • Recipe Notes: Pasta recipe: ■■■□ (3/4) difficulty, would make again
  • Learning Progress: Spanish vocabulary: ⬤⬤⬤⬤⬤⬤◯◯◯◯ 60% mastered

Support

For issues or feature requests: GitHub repository

License

MIT