Skip to content

Suggestions for --redraw-on-quit (bugs?) #231

@bew

Description

@bew

Extracted from #36

Hello, while testing the beta release 598 and the --redraw-on-quit feature (from #36), I noticed a few things that stops me from using that option:

image
(note: I've scrolled up a bit to show what I did)

1. Paging small content adds many ~ on quit

When using the pager with small content (less than terminal height), quitting will print the content followed by many ~ lines to fill the terminal.
Is that intentional? Can I remove these?

👉 If the content is smaller that terminal hight, I'd like to show the pager, and then have only the content printed on quit, as if I didn't use the pager.

2. Line ...skipping... that shouldn't be there?

There's a line ...skipping... at the beginning of the printed text on quit.
I'm guessing it's meant to indicate that the first printed line is not the first line of the piped content. But in this case it is, so that line shouldn't appear? 👀

👉 I think that line should only be visible when there's actually 1 or more lines skipped / not displayed at the beginning AND/OR at the end of the file

Also maybe change that line to ...skipped lines... ?


Do you see what I mean?
What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions