Sublime Forum

Jump to next line but same column (csv file)

#1

How jump to next line but same column in a csv file using a key (semi-colon is delimiter)?

For instance:

line1 COLUMN1;COLUMN2;COLUMN3 cursor ;COLUMN4;COLUMN5;COLUMN6;
line2 COLUMN1;COLUMN2;COLUMN3;COLUMN4;COLUMN5;COLUMN6;

press a key

line1 COLUMN1;COLUMN2;COLUMN3;COLUMN4;COLUMN5;COLUMN6;
line2 COLUMN1;COLUMN2;COLUMN3 cursor ;COLUMN4;COLUMN5;COLUMN6;

Thanks for any help :slightly_smiling:

0 Likes

#2

in your particular example, it looks like Down Arrow would suffice :wink:

but you might want to consider using https://packagecontrol.io/packages/Advanced%20CSV - it has a feature called Justify Columns which will line all the columns up for you, then when you have finished editing the file, you can Collapse Columns before saving it

0 Likes

#3

COLUMN* is not the text, and column lengths are not equal. Therefore ‘Down Arrow’ doesn’t suffice…

COLUMN1 is the ‘code’, COLUMN2 is the English text, COLUMN3 the French text, etc.
My files contain the English text, and i need to translate it in French. That’s why i would like jump to the same column (#3) pressing a key. I currently need to click on each line…

I will try Advanced CSV again.

0 Likes