Edit multiple cells at once in $EDITOR #1596
Unanswered
Delapouite
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Are you asking for a way to edit a row in your $EDITOR I think such a feature would be useful if the text file being edited was in a standard format (think JSON or YAML) Also there would be issues around rows with structured data like JSON |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
Visidata lets the user edit the current cell in
$EDITOR
withCtrl+O
as documented on this page: https://www.visidata.org/docs/edit/ which is really handy, thanks.Is there a way to do it for multiple cells at once?
Let's me illustrate by piggy-backing on the example data used in this tutorial : https://jsvine.github.io/intro-to-visidata/basics/opening-files/
Here's what the top of the sheet looks like :

Now I'm interested about editing the first row. I could press to
e
change the content of the first column, then move to the next column withShit+arrow keys
as described in #1321It works well when the content of the cells is small. But can be cumbersome for big cells (even when expanded with
v
).So if I press

Enter
on the first row of the sheet, I have a good overview of it :This is the stage where I would find useful to have a command "Open this sheet in $EDITOR", which could result in something like that:

In the screenshot above, an external text-editor is opened (Kakoune here, but not relevant), each "column" is prefixed with a
#
and must be left untouched and each cell content is available just below.When editing is finished, saving this temporary document would then applied back the changes to the original sheet. If ever by mistake a mismatch has been introduced, meaning a "column" has been removed or reordered by mistake for example, the changes would not be applied and en error message would be displayed.
Do you think such a feature could be possible?
Thanks for your ideas.
Beta Was this translation helpful? Give feedback.
All reactions