Config formatted sheets #1488
Replies: 4 comments 4 replies
-
I have some common queries I perform around the same set of tables or other datasources. I've wrapped them up into some scripts. I typically perform the query, then I might use a VisiData script to reshape the types and sorting. While I use the VisiData scripting, I wish there was a more declarative way, matching column names to types, formatting, sorting, ordering, and visible/hidden. I had thought maybe vds format might be possible to use, but that requires formatting that data as json, which only some of my data is already. This is not a big problem, but haven't tried it yet. I might be getting away from the idea you were suggesting where you could update your .visidatarc file and say based on a column name alone it is safe to assume the format of the column's type and formatting. I think someone recently (last few months) responded on an older issue or discussion that they had solved a problem like by creating their own command they ran after loading data. |
Beta Was this translation helpful? Give feedback.
-
I wonder if @skeept's suggestion in #349 would be helpful here. Looks like @skeept uses this: https://github.com/skeept/dotvim/blob/master/test/keep/visidatarc skeept adds a |
Beta Was this translation helpful? Give feedback.
-
Okay, with the new
|
Beta Was this translation helpful? Give feedback.
-
For those that load the same sheet types repeatedly it might be good to allow to pre-set the column types (and other things like aggs?) in
.visidatarc
.For example, to always set the "timestamp" column in every sheet to date type:
Basesheet.columns.timestamp.type = date
To rename a column:
Basesheet.columns.prevcolname.name = "timestamp"
To automatically sort once the sheet has loaded:
Basesheet.columns.timestamp.sort = 'asc'
Thoughts? Do people use the same source data repeatedly?
Beta Was this translation helpful? Give feedback.
All reactions