Skip to content

Highlight leading /command tokens in the composer #43

Description

@Mineru98

Problem

Slash commands typed in the composer (e.g. /help, /model, /preflight …) render in the same colour as ordinary prompt text, so the command token does not stand out. The composer already highlights a leading ooo token, but a leading /command gets no visual treatment.

Proposal

Highlight the leading /command token in a distinct, theme-aware colour, mirroring the existing ooo highlight, to improve readability of the input line.

  • Detect the token with a regex so only a line-leading slash highlights.
  • Keep it theme-aware: the colour differs between the light and dark palettes.

Scope

  • Ourocode.Terminal.ScreenStyles: add a :command palette entry to both themes.
  • Ourocode.Terminal.RendererChrome composer rendering: paint the leading /token in :command.

Acceptance criteria

  • A leading /command token renders in the command colour.
  • Argument tokens after the command (e.g. ls -la after /preflight) stay plain text.
  • The colour is theme-appropriate (a distinct value per light/dark theme).
  • The existing ooo highlight and all other colours are unchanged.
  • Non-leading / non-command slashes are not highlighted: a/b, http://x, a mid-line /x.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions