bugGNU nano - Bugs: bug #64019, with --zero, the filename flashes...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #64019: with --zero, the filename flashes by when switching between buffers

Submitter:  Alan Cristhian Ruiz <alancristhian>
Submitted:  Sun 09 Apr 2023 08:52:21 PM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Open

Jump to the original submission

Wed 12 Apr 2023 01:55:40 PM UTC, comment #7: 

Yes is mine, but i threw there other unrelated stuff. Maybe i should only keep the nano related code.

Alan Cristhian Ruiz <alancristhian>
Wed 12 Apr 2023 08:25:00 AM UTC, comment #6: 

Indeed, what to show with --zero, and what not, is a matter of taste.  For me the criterium was: anything that I don't need to see should be hidden.  That's the idea of --zero.  If I want to see which file I'm in, I quickly toggle M-Z twice -- I use --minibar, so normally this does not make the text in the window move and is thus not distracting.

The patch has been pushed to master, commit 69a7dd86.

(By the way, is https://github.com/AlanCristhian/nanorc-wizzard yours?  I've looked at the .nanorc file, and I'm amazed.  The braced function names have existed for just five months, and you've already built a fully customised nano on top of it.  Wow.)

Benno Schulenberg <bens>
Group administrator
Tue 11 Apr 2023 04:10:32 PM UTC, comment #5: 

I actually expected to see the filename. But I understand that the choose of what should be displayed or not is a matter of taste. That could be a long discussion.

I'm not longer sure that I want the patch to be applied. If you think it should, go ahead :)

If you decide to apply the patch, you can keep the email address.

I tested the patch on my debian machine, and it works for me.

Thank you for taking the time to deal with this issue.

Alan Cristhian Ruiz <alancristhian>
Tue 11 Apr 2023 10:00:37 AM UTC, comment #4: 

Attached patch will prevent the flashing.  (If you don't want your email address in the commit message, I can remove it.)

(file #54598)

Benno Schulenberg <bens>
Group administrator
Tue 11 Apr 2023 09:42:48 AM UTC, comment #3: 

Okay, I see what you mean.  But the idea of --zero is to give only important/necessary feedback and to hide/suppress the chattiness.  So the problem is not that the filename is shown for too short a time but that it is visible at all.  I can fix that for this particular case, but nano writes messages to the status bar in various places and relies on the screen refresh quickly overwriting unimportant ones when --zero is active.  You can probably see a flashing message when you hold down Alt+A long enough, or when you place two anchors and then hold down Alt+PgDn.  I am not going to fix those, because there are too many of them.  And I cannot fix it by just suppressing all messages of the HUSH level because some of these I do want to see even with --zero (for example: when opening a huge file, I want to see the "Reading..." feedback).

Benno Schulenberg <bens>
Group administrator
Mon 10 Apr 2023 06:58:13 PM UTC, comment #2: 

Nano 7.2, the one that comes by default on the latest Debian 12.0 bookworm build.

I think that you see nothing because it flashes so fast. I also can't see nothing if I open two void files.

To reproduce do:

1. Choose two files. For example THANKS and NEWS from the nano repository.

2. Execute the following command:

nano --ignorerc --zero THANKS NEWS

3. Press and hold Alt-RightArrow. It will quickly switch between buffers.

It should be visble at some point by a millisecond or so.

Alan Cristhian Ruiz <alancristhian>
Mon 10 Apr 2023 08:09:47 AM UTC, comment #1: 

Cannot reproduce.  For me, in zero-interface mode, the filename is not displayed at all, so I'm puzzled where you shortly see the filename.  Please provide a recipe where you use only command-line options.  Something like this:

nano --ignorerc --zero .... firstfile secondfile


Also: what version of nano?  Self-compiled?  Which distro?

Benno Schulenberg <bens>
Group administrator
Sun 09 Apr 2023 08:52:21 PM UTC, original submission:  

Filename is not displayed long enough after changing buffers in zero interface mode.

To reproduce do the following:

1. Open .nanorc and enable <<set zero>> option. Then close it.
2. Open two files.
3. Switch between file buffers.

You will see that the filename is displayed a very short time. The manual sais that it should last 1.5 seconds.

Alan Cristhian Ruiz <alancristhian>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by alancristhian (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-04-12 bens StatusReady For Test Fixed
    2023-04-11 bens Attached File- Added 0001-files-suppress-filename-and-number-of-lines-when-zer.patch, #54598
        StatusConfirmed Ready For Test
        Assigned toNone bens
    2023-04-11 bens Severity3 - Normal 2 - Minor
        StatusNeed Info Confirmed
        SummaryFilename is not displayed long enough after changing buffers in zero interface mode with --zero, the filename flashes by when switching between buffers
    2023-04-10 bens StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code