Skip to content

fix: stop showing raw ANSI escapes in template select - #211

Merged
ulises-jeremias merged 1 commit into
mainfrom
fix/formatted-text-titles
Jul 18, 2026
Merged

fix: stop showing raw ANSI escapes in template select#211
ulises-jeremias merged 1 commit into
mainfrom
fix/formatted-text-titles

Conversation

@ulises-jeremias

Copy link
Copy Markdown
Member

Summary

  • String titles with ANSI were rendered literally (`^[[1;94m…`) by `questionary.select`
  • Switch to prompt_toolkit FormattedText style tokens
  • `SearchableFormattedText` keeps `use_search_filter` working (`title.lower()`)

Test plan

  • package tests
  • `uvx --refresh` after 0.2.4 — colors render, no caret-bracket escapes

Made with Cursor

questionary.select prints string titles literally, so SGR escapes showed as
^[[1;94m…. Use prompt_toolkit style tokens plus SearchableFormattedText so
type-to-filter keeps working.
Co-authored-by: Cursor <cursoragent@cursor.com>
@ulises-jeremias
ulises-jeremias merged commit c4a4071 into mainJul 18, 2026
13 checks passed
@ulises-jeremias
ulises-jeremias deleted the fix/formatted-text-titles branch July 18, 2026 05:42
@ulises-jeremiasulises-jeremias mentioned this pull request Jul 18, 2026
2 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@ulises-jeremias