Skip to content

sdl-kitty v0.7.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 17:25
· 38 commits to main since this release

Added

  • 100% standalone, zero-dependency Retina sdlk gum drop-in suite (14/14 Charm gum subcommands — alias gum='sdlk gum'):
    • Tier 1 (Full Interactive Retina Glass Panels — examples/sdl_kitty_gum_widgets.hpp):
      • sdlk file / gum file: Finder-style file browser with vector folder/image/code/file icons, breadcrumb header, . hidden toggle, / fuzzy filter, h/l navigation, --all/--directory/--file, and live right-pane PNG/BMP artwork, syntax-tinted code, and directory previews.
      • sdlk table / gum table: RFC-4180 CSV/TSV data table (--separator, --return-column, --print) with clickable numeric/lexicographic sortable column headers, proportional auto-widths, / cross-column filter, and O(visible) viewport culling.
      • sdlk write / gum write: multi-line Retina glass editor (--show-line-numbers, --char-limit, --placeholder, --value, Ctrl+V clipboard paste, Ctrl+D / Ctrl+Enter / Submit pill).
      • sdlk pager / gum pager: smooth-scrolling O(visible) document & diff viewer (--show-line-numbers, git-diff & Markdown syntax coloring, live / search with match-count pill and n/N jump, j/k/Space/g/G, glass scrollbar & fade vignettes).
      • sdlk confirm / gum confirm: centered Yes/No glass modal (--affirmative, --negative, --default, --json, instant Y/N keys).
      • sdlk input / gum input: Raycast-style single-line glass input (--placeholder, --value, --password, --char-limit, Ctrl+V paste).
      • sdlk spin / gum spin: liquid-gradient indeterminate comet spinner wrapping any command (--title, --show-output, --show-error).
      • sdlk ask / gum choose / gum filter: --limit N, --selected A,B, Ctrl+A select-all / Ctrl+D clear-all in --multi mode, --print, --json, --stdin, --default, and 255 → 130 cancel exit code parity.
      • sdlk slider: liquid-gradient numeric range slider (--min, --max, --step, --value, --unit).
      • sdlk progress -- <cmd...>: one-liner command wrapper with automatic CMake/Ninja/CTest progress parsing, --indeterminate sliding comet bar, --auto-close, and j/k/PgUp/PgDn scrollable activity log with auto-follow pause pill.
    • Tier 2 (Inline Scrollback Retina Cards via SDL_KITTY_LEAVE_IMAGES=1):
      • sdlk format / gum format: renders Markdown & code as crisp inline glass cards on Kitty TTYs (or clean ANSI/text when piped; --ansi / --retina).
      • sdlk style / gum style: renders glass banner cards (--border rounded|double|thick|normal|none) on TTYs, or exact UTF-8 Unicode boxes when captured inside $(...) for composition.
      • sdlk join / gum join: UTF-8 + ANSI-aware horizontal/vertical block stitcher (--horizontal, --vertical, --retina).
    • Tier 3 (Fast Native Text):
      • sdlk log / gum log: zero-dependency structured logger with colored level tags, --time, --structured k=v pairs, and --file.
      • gum version: prints sdlk gum <version> (Retina drop-in).
  • Live theme switching & CLI ergonomics:
    • Press Ctrl+T in any interactive Retina widget to live-cycle all 5 themes (tokyo, catppuccin, nord, amber, light) and Ctrl+S to persist to ~/.config/sdl-kitty/env.
    • sdlk config (show/get/set/unset/path), sdlk mame --last/--recent/--list --json, sdlk doctor --json with MAME snapshot coverage checks & actionable fixes, sdlk env --json/--fish, sdlk run --timeout, sdlk completions bash|zsh|fish, and typo suggestions (Did you mean: ...).
  • Docs & testing: new docs/widgets-and-gum.md and docs/sdlk-cli.md; expanded tests/kitty_sdlk_widgets_test.py to 48 automated CLI + Kitty PTY assertions verified under both Release and ASan+UBSan.

Performance

  • 550× lower idle CPU in interactive Retina widgets via event-driven poll() wakeup (wait_for_input_ms) + 530ms caret-blink sleep (-96.5% in --filter).
  • GlassFrameCache: caches the static ambient glow + frosted card + drop shadow in an offscreen SDL_Texture, skipping per-frame gradient/shadow recomputation.
  • O(visible) viewport culling in progress log (2000-line ring buffer), table, and pager.
  • Fast CLI startup & ROM scanning: eliminated O(N²) dedup and process-substitution forks (-45.9% at 1,000 ROMs) and pre-indexed flat/subdir snapshot directories (-27.0% doctor, -15.2% mame --list).

Fixed

  • Clean TTY exit on fast 1-frame inline cards: drain late-arriving terminal probe replies (XTVERSION, DA1, XTWINOPS, Kitty APC) + tcflush(TCIFLUSH) while still in raw no-echo mode before SDL_Quit(), and disable mouse probing (SDL_KITTY_MOUSE=0) on static inline cards so escape replies never leak onto the caller's shell prompt.