Skip to content

add dim text modification#1

Open
joankovacs wants to merge 3 commits into
juanrgon:masterfrom
joankovacs:dim_feature
Open

add dim text modification#1
joankovacs wants to merge 3 commits into
juanrgon:masterfrom
joankovacs:dim_feature

Conversation

@joankovacs

Copy link
Copy Markdown

No description provided.

Comment thread terminology/ansi.py

def _remove_bold(text) -> StyledText:
def _remove_bold_or_dim(text) -> StyledText:
"""Remove all text modifications from the given text."""

@juanrgon juanrgon Feb 23, 2021

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unrelated to your change, but this docstring is 100% incorrect. Are you willing to update it to

Suggested change
"""Remove all text modifications from the given text."""
"""Remove bold and dim modifications from the text."""

Comment thread terminology/ansi.py
Comment on lines +158 to +160
def dimmed(self) -> "StyledText":
return dimmed(self)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, it may seem trivial, but I try to keep my methods and functions alphabetized when there is a lot of them like there are here. There are ways to enforce that, but I haven't set that up. Would you be up for moving dimmed to the top

Comment thread terminology/ansi.py Outdated
Sign up for free to 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.

2 participants