Suppose that I have a file with many columns and many rows. I can see the line number easily in Vim but keeping track of column numbers is hard.
Now suppose that “column names” in the “header row” are unique as would normally be the case; would it be hard to make it possible to identify columns by “name” when using commands like :MoveColumn, e.g. :MoveColumn height width? I suppose there is already a function for splitting a row into a list of fields, so provided you do that with the top row wouldn’t it be trivial to get the column number from the list index?
In that connexion an [range=.]:SetValue {col_id} {value} e.g. :SetValue width 4.2 would be very useful.
Suppose that I have a file with many columns and many rows. I can see the line number easily in Vim but keeping track of column numbers is hard.
Now suppose that “column names” in the “header row” are unique as would normally be the case; would it be hard to make it possible to identify columns by “name” when using commands like
:MoveColumn, e.g.:MoveColumn height width? I suppose there is already a function for splitting a row into a list of fields, so provided you do that with the top row wouldn’t it be trivial to get the column number from the list index?In that connexion an
[range=.]:SetValue {col_id} {value}e.g.:SetValue width 4.2would be very useful.