-
I have a need and I wonder whether anyone else has had that need and found the solution. Here's something that happened today, and happens quite frequently: I opened a sheet with 20+ columns. I needed to look at 3 of its columns side by side so I could compare them. They were not positioned close to each other, so I had to search for them and move them to be closer to each other using I have many CSVs with the same structure that I'm examining as I'm iterating on experiments. I keep having to do this 30 second column shuffle on every open. I would like to have some automatic way to say "Show only columns foo, bar and baz". Does anyone have a way to do that? I could write a script for this specific set of columns, but this happens in different kinds of sheets where I want to have different subsets of columns. I considered making a script that lets me define column subsets, and then apply them to the current sheet or edit them. But this would be quite an involved UI for a script. If anyone has a different solution, I'll be happy to hear it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
@cool-RR Did you already figure this one out? If not, here is how I would do it. Try:
|
Beta Was this translation helpful? Give feedback.
-
Not a direct answer to your question, but wouldn't this be better achieved by using There is the awesome xsv which I often use as companion in crime for visidata. You could do something along the lines of
(you might need to double check the |
Beta Was this translation helpful? Give feedback.
Thanks @frosencrantz . If your instruction list was half the size it currently is, it would still be too long for me.
I think my best solution right now is to use this script of mine below. It basically compresses your seven steps into one. I would still like something faster than that, since typing a regex (or looking through history) is a bit cumbersome, but I've given up on working on that for now.