hishtory icon indicating copy to clipboard operation
hishtory copied to clipboard

Support customizing the column names

Open ddworken opened this issue 3 years ago • 1 comments

As originally suggested in #59

ddworken avatar Dec 18 '22 06:12 ddworken

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.

GRbit avatar Jul 17 '24 17:07 GRbit