How to I move to column with given name - and back? #1582
-
In a CSV with many columns how can I jump to a column given its header name? For example, I have a CSV file were the second column is called "type" and the 25th column is called "distance" and for a few rows I want to edit the "distance" values manually on the grounds of the "type" details and then save the CSV file back. So when I am in a given row I need to jump between between these two columns back and forth -- what is the easiest way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @halloleo,
|
Beta Was this translation helpful? Give feedback.
Hi @halloleo,
There are several options. I have a solution that is close to what you want, but I think I would go about it differently, and reposition the columns closer to each other so you can see them both on the screen at once.
c
go-col-regex
command and as input give a regex that matches the two column names^(colname1|colname2)$
. Subsequent times you hitc
, you can hitEnter
and it reuses the last value, and so it should jump to the other column. This does what you asked.key-col
!
. The key columns are anchored on the left side of the screen. This has some significance for other commands like generating a frequency sheet with multiple columnsgF
freq…