Added selection-aware word count plugin for Koenig#1976
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
WalkthroughThis PR adds a new Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
tagging you because I don't think I have the power to add you as a reviewer as an external contributor Thanks! |
|
Thanks! I'll take a look when I'm able. |
Discussed with Steve (@9larsons) over Ghost support email, who suggested opening this in the Koenig repo.
Adds a headless
SelectionWordCountPluginthat reports the word count of the current selection.onChange(count)fires with an integer (so a word count of 0 is allowed) while a non-collapsed range selection exists, and withnullonce the selection collapses.countWordsutil asWordCountPlugin, so selection counts should stay consistent with the document totalWordCountPluginuses inKoenigNestedComposerWordCountPluginand its API are not touchedVideo demo:
ghost_koenig_word_counter.mp4