mirror of
https://github.com/openai/codex.git
synced 2026-10-28 18:58:46 +00:00
Add a `/theme` slash command that opens an interactive picker listing all bundled and custom (.tmTheme) syntax themes. The picker shows a live-preview code snippet below the list that re-highlights as the user navigates, and restores the original theme on cancel. Key changes: - ListSelectionView gains `footer_content`, `on_selection_changed`, and `on_cancel` to support rich preview and lifecycle callbacks - highlight.rs: swap global Theme from OnceLock to RwLock for live swapping; add resolve/list/set/current helpers for theme management - New theme_picker module with ThemePreviewRenderable and picker builder - diff_render: make DiffLineType and helpers pub(crate); fix rename highlighting to use destination extension - markdown_render: fix CRLF double-newlines and info-string metadata parsing for fenced code blocks