Skip to content

Feat: Format output responses with terminal syntax highlighting #3

Description

@imuday984

Description

The AI explanation and solution output is currently printed as unformatted, flat text. It is difficult to distinguish the technical explanation from the suggested commands (which are typically enclosed in backticks or markdown code blocks by Gemini).

Proposed Solution

  1. Colorizing Header Bars:

    • Use a lightweight, zero-dependency terminal formatting method (or standard ANSI escape codes) to colorize the headers (e.g., make the line dividers and EXPLANATION AND SOLUTION header green or blue).
  2. Highlighting Code Snippets:

    • Implement a simple parser/regex in index.js to find text enclosed in backticks (e.g., `dir fake-folder`).
    • Format these detected code snippets with a distinct terminal color (like cyan or yellow) to make recommended commands instantly recognizable to the user.

Definition of Done

  • The visual separators and output headers are colorized in the terminal.
  • Suggested code blocks and CLI commands are highlighted dynamically in a different color.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions