Index | Thread | Search

From:
Todd C. Miller <millert@openbsd.org>
Subject:
Re: usr.bin/vi: add 'are we there yet' indicator to the ruler
To:
Job Snijders <job@openbsd.org>
Cc:
tech@openbsd.org
Date:
Wed, 24 Apr 2024 19:06:29 -0600

Download raw body.

Thread
On Sun, 21 Apr 2024 22:27:59 -0000, Job Snijders wrote:

> When working my way through source code files, I sometimes notice myself
> starting to wonder how long it'll be before my plight is over. Hitting
> control-G over and over again increases anxiety. Instead, the ruler
> could just show, as a percentage, how far into the file the cursor is.
>
> This patch adds an 'are we there yet?' signal in the column bar by means
> of displaying the current line number as a percentage of the total lines
> in the file, only if the 'ruler' option is set, and if the last line
> number can be determined.

No objection from me but it would be nice to keep the nvi2 port in
sync if possible.  Would you be willing to create a PR with this
change at https://github.com/lichray/nvi2

 - todd