- Set `default_syntax_highlighting` to true in core config. - Added language‑aware syntax selector (`select_syntax_for_language`) and highlighter builder (`build_highlighter_for_language`) with unit test. - Integrated new highlight module into `ChatApp`, using `UnicodeSegmentation` for proper grapheme handling. - Simplified `should_highlight_code` to always return true and removed extended‑color detection logic. - Reworked code rendering to use `inline_code_spans_from_text` and `wrap_highlight_segments` for accurate line wrapping and styling. - Cleaned up removed legacy keyword/comment parsing and extended‑color detection code.
Owlen TUI
This crate contains all the logic for the terminal user interface (TUI) of Owlen.
It is built using the excellent ratatui library and is responsible for rendering the chat interface, handling user input, and managing the application state.
Features
- Chat View: A scrollable view of the conversation history.
- Input Box: A text input area for composing messages.
- Model Selection: An interface for switching between different models.
- Event Handling: A system for managing keyboard events and asynchronous operations.