ov icon indicating copy to clipboard operation
ov copied to clipboard

Please support a leading count for keybindings

Open hupfdule opened this issue 3 years ago • 1 comments

This Issue is the next level of #28.

Many users are used to be able to use a count for keybindings. While this may be only nice-to-have (but still very handy) in most cases, it becomes very apparent with the g keybinding.

It basically has the same functionality in ov as in less, but in ov it is quite cumbersome.

To jump to line 10 in less, one can type:

10g

In ov one has to type:

g10<enter>

Not much, as it is only 1 keystroke more, but since the order of the count and the commands keybinding is exchanged it is hard to use for people accustomed to less.

It gets even worse when trying to jump to the beginning of the file.

In less one can type:

g

by just omitting the count.

I ov it is still necessary to type:

1g<enter>

Therefore I think it would be a nice addition to support a count for commands as this can come in handy for most commands and makes ov much easier to use for previous less-users.

hupfdule avatar Oct 22 '20 20:10 hupfdule

Thank you for the issue.

This is convenient, but it may limit other features. I want to think carefully.

noborus avatar Oct 23 '20 02:10 noborus