Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use config for selection mark/unmark symbols #594

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1251,6 +1251,8 @@ impl TaskwarriorTui {
)
.highlight_style(highlight_style)
.highlight_symbol(&self.config.uda_selection_indicator)
.mark_highlight_symbol(&self.config.uda_mark_highlight_indicator)
.unmark_highlight_symbol(&self.config.uda_unmark_highlight_indicator)
.mark_symbol(&self.config.uda_mark_indicator)
.unmark_symbol(&self.config.uda_unmark_indicator)
.widths(&constraints);
Expand Down
6 changes: 6 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ pub struct Config {
pub uda_task_report_looping: bool,
pub uda_task_report_jump_to_task_on_add: bool,
pub uda_selection_indicator: String,
pub uda_mark_highlight_indicator: String,
pub uda_unmark_highlight_indicator: String,
pub uda_mark_indicator: String,
pub uda_unmark_indicator: String,
pub uda_scrollbar_indicator: String,
Expand Down Expand Up @@ -133,6 +135,8 @@ impl Config {
let uda_task_report_looping = Self::get_uda_task_report_looping(data);
let uda_task_report_jump_to_task_on_add = Self::get_uda_task_report_jump_to_task_on_add(data);
let uda_selection_indicator = Self::get_uda_selection_indicator(data);
let uda_mark_highlight_indicator = Self::get_uda_mark_highlight_indicator(data);
let uda_unmark_highlight_indicator = Self::get_uda_unmark_highlight_indicator(data);
let uda_mark_indicator = Self::get_uda_mark_indicator(data);
let uda_unmark_indicator = Self::get_uda_unmark_indicator(data);
let uda_scrollbar_indicator = Self::get_uda_scrollbar_indicator(data);
Expand Down Expand Up @@ -198,6 +202,8 @@ impl Config {
uda_task_report_looping,
uda_task_report_jump_to_task_on_add,
uda_selection_indicator,
uda_mark_highlight_indicator,
uda_unmark_highlight_indicator,
uda_mark_indicator,
uda_unmark_indicator,
uda_scrollbar_indicator,
Expand Down
Loading