Limit the output to the X first lines then next… #34

Closed
opened 2021-01-13 08:26:46 +00:00 by ploum · 2 comments

There are a couple of problems with the (stdout|less) approach.

Firstly, you are usually mostly interested in the start of the page (think CAPCOM or gemlog with long history of posts).

It would make sense to always display the start of a page then something like (YY lines left in this post).

Next problem with the less approach is that I find myself trying to remember the numbers I want to add in my tour then, aftear leaving less, quickly typing them.

If the output was limited to a given XX lines, I could either type "less" (to scroll as usual) or type "next" to have the next XX lines (with some overlap. "prev" would of course go up.

This would change the meaning of next so maybe some other command would be better.

There are a couple of problems with the (stdout|less) approach. Firstly, you are usually mostly interested in the start of the page (think CAPCOM or gemlog with long history of posts). It would make sense to always display the start of a page then something like (YY lines left in this post). Next problem with the less approach is that I find myself trying to remember the numbers I want to add in my tour then, aftear leaving less, quickly typing them. If the output was limited to a given XX lines, I could either type "less" (to scroll as usual) or type "next" to have the next XX lines (with some overlap. "prev" would of course go up. This would change the meaning of next so maybe some other command would be better.
Author

I understand that the tricky question is the default value for XX. I would guess that XX=0 would disable it, falling back to the current behaviour.

It would be interesting to know if there’s a way to set automatically an XX that makes sense in the current terminal.

I understand that the tricky question is the default value for XX. I would guess that XX=0 would disable it, falling back to the current behaviour. It would be interesting to know if there’s a way to set automatically an XX that makes sense in the current terminal.
Author

Damn, just realised that this was already implemented by simply pressing "return".

Should I be ashamed?

Damn, just realised that this was already implemented by simply pressing "return". Should I be ashamed?
ploum closed this issue 2021-01-18 10:32:11 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: solderpunk/AV-98#34
No description provided.