ScriptKit v1.3.0 - #2301
Open
KenanMillet wants to merge 14 commits into
Open
Conversation
- Fix: code/pre blocks no longer have content processed as markdown (asterisks and [link](url) inside backticks are preserved via placeholder extraction + entity encoding for Roll20 chat compatibility) - Fix: null topic entries no longer crash man command - html.table: overflow-x:auto wrapper for horizontal scrolling - Updated registration log format - Updated README, TODO, version header, changelog
- ScriptKit.getHelpHandout(scriptName) — returns cached help handout object - ScriptKit.getDevHandout(scriptName) — returns cached dev handout object - Handouts cached at registration and generation time (no repeated findObjs) - html.handoutLink(text, id, style, anchor) — optional 4th param appends /#anchor to URL
…atsnew - help command: inline topics replaced with Browse Topics button - help auto-injected commands: whatsnew, gen-help, gen-dev-docs (conditional) - man topics show handout anchor link - !scriptkit whatsnew [date]: consolidated view across all plugins - Per-plugin whatsnew accepts date argument - Version date tracking: changelog dates stored in state, auto-stamp current version - Shared parseDate/getRelevantChangelog helpers - Added 1.0.0 changelog entry with date
- !<plugin> changes [search]: full rendered changelog with optional text filter - Auto-conflict detection: at registration, default aliases that match a registered command's first syntax word are auto-nulled (prevents interception) - Updated changelog, README, TODO
- ScriptKit.usage(msg, scriptName): progressive fallback for unknown commands 1. Keyboard-weighted fuzzy suggestions (QWERTY adjacency, 4-tier costs) 2. Prefix matching (input is prefix of command = always suggest) 3. Topic suggestions (prefix/substring only, no fuzzy) 4. Fallback: Show All Commands button - Updated changelog, README, TODO
…eter - ScriptKit.usage(msg, scriptName, command?, reason?) - With command: shows syntax + description + items from registered help data - With reason: displays error message above the usage info - Without command: unchanged fuzzy-match behavior
…nt fully - usage(msg, command?, reason?) - no scriptName needed, auto-detected from msg prefix - Updated dev-docs topic, README, TODO, changelog
- !<plugin> motd alias: show a random tip for that plugin - !scriptkit motd [plugin]: global pool or plugin-specific - In-memory no-repeat tracking (resets when all shown) - Debounced startup: single tip 10s after last registration (replaces per-plugin) - Derived button styling from frame borderLeft accent color - motdButtonStyle opt for explicit override
- Shows changes since lastSeenVersion when plugins upgrade - Dismissable via button (stores current versions, won't show again until next upgrade) - First install: stores version silently (no card) - Excludes ScriptKit itself from the card - Guards See Details button on null whatsnew alias
…, man result labels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ScriptKit v1.3.0
Summary
Major quality-of-life release: smarter help system, on-demand tips, version date tracking, and fixes for Roll20 chat markdown interference.
Bug Fixes
`*`,`${expr}`) is no longer processed as markdown by Roll20's chat renderer. Asterisks and[link](url)syntax are entity-encoded to survive.mancommand.New Features
Help System
helpcommand: inline topics list replaced with compact "📖 Browse Topics" buttonhelpauto-injected commands now includewhatsnew,changes,motd,gen-help,gen-dev-docs(conditionally based on enabled aliases)mantopics display a 📖 handout anchor link to the corresponding sectionCommands
!<plugin> changes [search]— full rendered changelog with optional text search filter!scriptkit whatsnew [date]— consolidated whatsnew across all plugins with date-based filtering (ISO or human-readable dates)whatsnewalso accepts a date argument!<plugin> motd/!scriptkit motd [plugin]— on-demand random tip with no-repeat tracking!scriptkit dismiss-whatsnew— mark all current versions as seenStartup Behavior
API
ScriptKit.getHelpHandout(scriptName)/ScriptKit.getDevHandout(scriptName)— cached handout object lookup (no repeated findObjs)html.handoutLink(text, id, style, anchor)— optional 4th param for deep-linking to handout sectionshtml.table— wrapped inoverflow-x:autodiv for horizontal scrollingScriptKit.usage(msg, command?, reason?)— smart unknown-command handler:Other
datefields stored in state for date-based queriesmotdButtonStyleregistration option for explicit button style overrideborderLeftaccent colorȘꝀ ⚙⚙)Tested
getHelpHandout/getDevHandout: verified via Choreograph tutorials with anchored help linkshtml.handoutLinkanchor: confirmed Roll20 navigates to correct headingusage(): tested fuzzy matching (keyboard distance, prefix, threshold scaling)changes: tested with search filteringwhatsnew: tested date-based and version-based modesmotd: tested per-plugin, global pool, no-repeat cycling, button commands