zifeo / whiz

Modern DAG/tasks runner for multi-platform monorepos with live reloading, env management, pipes, and more in a tabbed view.
https://metatype.dev/docs/reference/ecosystem?utm_source=github&utm_medium=about&utm_campaign=whiz
Mozilla Public License 2.0
19 stars 14 forks source link

Display the position of the end of the buffer #1

Open Natoandro opened 1 year ago

Natoandro commented 1 year ago

Display the number of lines we need to scroll down to reach the end of the buffer.

It will be in the format M/N, where N and M are integers. N is the height of the buffer minus the height of the screen. 0/N (not displayed) means the end of the buffer is visible; N/N means we are at the top of the buffer.

gloomweaver commented 1 year ago

Where do you expect this to be rendered?

zifeo commented 1 year ago

@gloomweaver Make a proposal, something that works well design-wise and functional-wise (e.g. think small width with multiple tabs).

julianojosoa13 commented 1 year ago

image

I propose to do this the same as in the "more" command from linux text-utils (https://github.com/util-linux/util-linux/blob/master/text-utils/more.c). Display a percentage to indicate where are we located!

zifeo commented 1 year ago

@julianojosoa13 Works! I would suggest that you tackle also https://github.com/zifeo/whiz/issues/4 in the same feature.