Skip to content

List PgUp and PgDn window is hardcoded to 5 items #417

@abitrolly

Description

@abitrolly

I expected List element to scroll contents according to page height. It doesn't. Because it uses hardcoded page size of 5 elements. Is it possible to fix that?

tview/list.go

Lines 501 to 504 in cd38d74

case tcell.KeyPgDn:
l.currentItem += 5
case tcell.KeyPgUp:
l.currentItem -= 5

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