Replies: 1 comment 3 replies
-
Hi @abitrolly, this is an interesting idea and I've been thinking about how to make it easier to do things like this. I'll give your As a workaround for right now, you can save a cmdlog with those commands, and then run it in batch mode, where every status msg is sent to stderr:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
visidata
is awesome. Want to make it even better. )Given this JSON - https://gitlab.com/gitlab-org/gitlab-docs/-/pipelines.json - I need to calculate column average for build duration.
I can extract the column using
jq
(and filter it, but I'd like to keep it simple).And then use
awk
or Python to process it, but I would prefer to usevisidata
from command line as it is more powerful in a long run.So the sequence of keys to get average is
#
z+
avg
<enter>
. And then there is a line_avg=1019.43
at the bottom of the window, which is impossible to copy/paste anywhere.The most straightforward approach I can think of is to add these as macros.
And yes, then there is no
-m, --macro
command, and it is not evident here that the result should be written tostdout
.Beta Was this translation helpful? Give feedback.
All reactions