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

Support customizing the column names #60

Open
ddworken opened this issue Dec 18, 2022 · 1 comment
Open

Support customizing the column names #60

ddworken opened this issue Dec 18, 2022 · 1 comment

Comments

@ddworken
Copy link
Owner

As originally suggested in #59

@GRbit
Copy link
Contributor

GRbit commented Jul 17, 2024

I think I can give it a go.

I have two ideas:

  1. change displayed_columns in config from array of strings, to a dictionary "original_column_name": "custom_column_name". I think I can code it to read strings and change it after.
  2. Add new dict renamed_columns with the same structure of "original_name": "custom_name"

Advantages of the second approach is that you have better backward compatibility, but it could be tricky with sorting. If you want your own order, you'll have to set all columns as renamed ones. Like if there will be something in both displayed_columns and renamed_columns we will have to insert all displayed first and all renamed after. So if users would like to rename just one column, they'll have to overwrite all the columns as renamed, which isn't very convenient.

Tell me what you think please, and feel free to add more info about what you'd like to see in this feature.

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