nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stabilizing the output of --constantshow


From: Mike Frysinger
Subject: Re: stabilizing the output of --constantshow
Date: Fri, 12 Mar 2021 23:14:37 -0500

On 12 Mar 2021 15:32, Benno Schulenberg wrote:
> Op 10-03-2021 om 17:10 schreef Mike Frysinger:
> > * the percentage should stay fixed at 3 cols since the cursor is frequently
> >   at the end col in the current line as one types
> > 
> > char %*i,%i (%2i%%) ]
> > * the current count width should be the same as the max count width
> > * the percentage should float between 2 & 3 cols rather than 1 & 2 & 3
> 
> See attached patch for a first try.  For the vast majority of files,
> lines should be less than 100 columns wide, so I've simply used
> "col %2zu/%2zu".  When coming across wider lines, --constantshow
> will still be jumpy, but... that could be a gentle encouragement
> not to use such wide lines.  :)

100 does seem to be the new limit that langs are adopting, so maybe it's
not so bad for now.

> Other users of 'set constantshow', please try this patch and comment.

seems to work well, thanks
-mike



reply via email to

[Prev in Thread] Current Thread [Next in Thread]