Skip to content

Add 'enable_text_emphasis' behavior config option#573

Merged
Rigellute merged 1 commit into
Rigellute:masterfrom
kepae:configure-text-emphasis
Sep 22, 2020
Merged

Add 'enable_text_emphasis' behavior config option#573
Rigellute merged 1 commit into
Rigellute:masterfrom
kepae:configure-text-emphasis

Conversation

@kepae
Copy link
Copy Markdown
Contributor

@kepae kepae commented Sep 11, 2020

As mentioned in Issue #568, some users' terminals can have escaping issues with text emphasis.
This pull request introduces a new field named enable_text_emphasis to BehaviorConfig.

BehaviorConfig seemed better suited as a home for this bit than Theme, and required less work. ;-)

Open to simpler/more sustainable ways to make this change, of course! First time contributer here.

@kepae kepae marked this pull request as ready for review September 11, 2020 06:41
Copy link
Copy Markdown
Owner

@Rigellute Rigellute left a comment

Choose a reason for hiding this comment

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

Excellent work @kepae 👏 .Thank you for your contribution.

Comment thread src/ui/mod.rs
let modifier = if app.user_config.behavior.enable_text_emphasis {
Modifier::ITALIC | Modifier::BOLD
} else {
Modifier::empty()
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.

Nice 👍

@Rigellute Rigellute merged commit c849d4e into Rigellute:master Sep 22, 2020
@Rigellute
Copy link
Copy Markdown
Owner

@all-contributors please add @kepae for code and doc

@allcontributors
Copy link
Copy Markdown
Contributor

@Rigellute

I've put up a pull request to add @kepae! 🎉

@Rigellute Rigellute mentioned this pull request Sep 22, 2020
lanej pushed a commit to lanej/spotify-tui that referenced this pull request Jul 13, 2021
nighi pushed a commit to nighi/spotify-tui that referenced this pull request Jul 11, 2025
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