ov icon indicating copy to clipboard operation
ov copied to clipboard

Feature request: Provide a sane default for certain interactive commands that require an argument

Open hupfdule opened this issue 9 months ago • 1 comments

I am thinking mainly of the HeaderColumn command here.

When calling this function from a running ov session it requests to enter the Header length:. In the vast majority of cases this will be 1. But ov currently requires that this number is explicitly typed in.

It would be a much better experience if it would default to 1 as this will be appropriate for most cases if no other value is entered.

I don’t explicitly mention HeaderColumn in the title of this bug report as it may apply to other commands, too, but I didn’t check such sane defaults exist for other commands.

hupfdule avatar Mar 24 '25 13:03 hupfdule

Thanks for the issue.

My thinking is that the default is already set in an option or setting, so the HeaderColumn input is used to change the default.

So I don't think a hard-coded value is appropriate. I think a smart guess is appropriate, but I haven't done that yet.

noborus avatar Mar 25 '25 02:03 noborus