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

tv.toml config file has no effect #165

Closed
winter-again opened this issue Jul 3, 2023 · 4 comments
Closed

tv.toml config file has no effect #165

winter-again opened this issue Jul 3, 2023 · 4 comments

Comments

@winter-again
Copy link

winter-again commented Jul 3, 2023

First, thanks for making this! Unfortunately I can't seem to get the config file to work. I have my config file at ~/.config/tv.toml, shown below. I see in the README that every key-value pair should be present, which I think I've done. I've installed tidy-viewer via Cargo (version 1.4.30). Am I just doing something blatantly wrong? Thanks.

# The delimiter separating the columns. [default: ,]
delimiter = ","
# Add a title to your tv. Example 'Test Data' [default: NA ("")]
title = ""
# Add a footer to your tv. Example 'footer info' [default: NA ("")]
footer = ""
# The upper (maximum) width of columns. [default: 20]
upper_column_width = 20
# The minimum width of columns. Must be 2 or larger. [default: 2]
lower_column_width = 2
# head number of rows to output <row-display> [default: 25]
number = 35
# extend width and length in terms of the number of rows and columns displayed beyond term width [default: false]
extend_width_and_length = true
# meta_color = [R,G,B] color for row index and "tv dim: rows x cols"
meta_color = [255, 0, 0]
# header_color = [R,G,B] color for column headers
header_color = [232, 168, 124]
# std_color = [R,G,B] color for standard cell data values
std_color = [133, 205, 202]
# na_color = [R,G,B] color for NA values
na_color = [226, 125, 95]
# neg_num_color = [R,G,B] color for negative values
neg_num_color = [226, 125, 95]
@alexhallam
Copy link
Owner

alexhallam commented Jul 4, 2023

Thanks for reporting this bug. This is on me. I am working on a fix now.

For a temp fix change extend_width_and_length to extend_width_length

@winter-again
Copy link
Author

That works. Thanks!

@alexhallam
Copy link
Owner

I have a new flag I am working on -config-details. This will allow optional parameters and let the user know what is missing.

image

@alexhallam
Copy link
Owner

#163

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

No branches or pull requests

2 participants