Skip to content

feat: spinner style configurable via lmcode.toml #20

@VforVitorio

Description

@VforVitorio

Context

The spinner is hardcoded to rich.spinner.Spinner("dots").
Rich ships ~80 named spinners and users may want a different style.

Proposed change

Add to lmcode.toml (or [ui] section of settings):

[ui]
spinner = "dots"   # any Rich spinner name

Exposed as settings.ui.spinner and passed to Spinner(settings.ui.spinner, ...).

Notable Rich spinner names

  • dots (default) — ⠋⠙⠹⠸⠼…
  • arc — cleaner arc sweep
  • moon — 🌑🌒🌓🌔🌕…
  • aesthetic — slow, elegant
  • bouncingBar — bar bounce

Validation

On startup warn if the configured name is not a valid Rich spinner;
fall back to "dots" with a tip to run python -m rich.spinner for options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions