Skip to content

Conversation

ODAncona
Copy link
Collaborator

@ODAncona ODAncona commented Sep 16, 2025

Code2Prompt TUI

This pull request improve code2prompt by a substantial margin introducing a much requested feature: Terminal User Interface.

Press ENTER to run analysis

It can help user to select / deselect files in an easier way.

The architecture of the TUI follows the Elm/Redux paradigm with Model (state of the app) Messages and View (widgets) and leverages ratatui tui library.

Improvement:

  • Selection UI
  • Settings UI
  • Statistics UI with Overview, By Extension, Token Map
  • Template editor UI
  • Output UI
  • File consolidation & Codebase Refactor
  • Interactive Session with layered filter

Selection UI

You can select or deselect files or folder

image

Statistics UI

In this view, you get an overview of what consumes token.
image

Template Editor

This interface allows you to edit the template, and load user template or default templates

image

closes #100, #165

@ODAncona ODAncona self-assigned this Sep 16, 2025
@ODAncona ODAncona added the enhancement New feature or request label Sep 16, 2025
@ODAncona ODAncona merged commit 0bd8576 into main Sep 16, 2025
1 check passed
@ODAncona ODAncona deleted the tui branch September 16, 2025 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: TUI file selector on --tui option
1 participant