Skip to content

Referencing columns by "name" in command arguments #241

@bpj

Description

@bpj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions