Skip to content

Rich markup in Zsh completion help lines #821

Answered by svlandeg
tiangolo asked this question in Questions
Discussion options

You must be logged in to vote

I submitted a PR #877 that at least should adress removing the tags from the output.

If anyone wants to test the PR, I'd appreciate it! Just let me know which OS and shell you're on, and fill in the following boxes for your system:

  • Shows Rich tags in completion text with master
  • Removes Rich tags in completion text with PR 877
  • Shell is able to show Rich formatting in simple script
  • Shows Rich formatting in completion text with PR 877

A simple script you can use to double check whether your console supports Rich formatting, is the following:

    from rich.console import Console

    description = "The [bold]name[/bold] of the [green]user[/green]"

    console = Console()
    console.pr…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tiangolo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
2 participants