Sublime Forum

Edit column row-wise within rectangular selection

#1

I have a table-like file, multiple columns like a CSV file.

If I wish to edit the values in (say) the 3rd field, I need to do the following:

  1. select the existing value in the first row,
  2. enter a new value,
  3. move down, shift-move left (multiple) to select the next value.
  4. back to step 2 and repeat

I would like to simplify this. Rectangular selection is great, but it creates multiple cursors. I would love a single cursor that moves down to the next row within the rectangular region, and selects the existing value, ready for me to overwrite.

Or to put it simply, just like Excel edits values in a column: type value, press enter, type value, press enter…

Is there any way to do this in Sublime? Has a package been written, or is there a quick mod that could allow me to do this?

tim

0 Likes

#2

If you have multiple-selections at the position where you want to insert it you can use MultiEditUtils to convert the selections to fields and use tab to cycle through them. There is also a Table Editor package, but I don’t have experience with that.

0 Likes

#3

Thanks for these suggestions. I can’t get MultiEdit’s tab behaviour to work. Other key bindings work, but there must be something overriding the tab key in particular. But problem basically solved, so thx

tim

0 Likes