Limit the output to the X first lines then next… #34
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: solderpunk/AV-98#34
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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.
Damn, just realised that this was already implemented by simply pressing "return".
Should I be ashamed?