visidata icon indicating copy to clipboard operation
visidata copied to clipboard

[main] command-line argument +a:b is parsed as row:col, contradicting man page

Open midichef opened this issue 3 months ago • 8 comments

Small description vd sample_data/benchmark.csv +:0:2 opens the sheet with the cursor at the third column.

Expected result The documentation suggests it should open at the third row, not column: https://github.com/saulpw/visidata/blob/581cdf12b28278aea87ce09f7c32bf8ae1be2f0f/visidata/man/vd.txt#L10

What's the correct order here: +col:row or +row:col? I've got a PR to fix some bugs in handling the initial row/columns passed in the +a:b argument. Should I match the man page and docstrings which say col:row? Or the existing behavior and the tests in features/slide.py, which do row:col?

Additional context saul.pw/VisiData v3.1dev

midichef avatar Mar 23 '24 22:03 midichef