[PR #479] Add GetLast and GetFirst method #964

Open
opened 2026-03-04 01:08:46 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/rivo/tview/pull/479
Author: @raziman18
Created: 7/26/2020
Status: 🔄 Open

Base: masterHead: list


📝 Commits (3)

📊 Changes

1 file changed (+25 additions, -0 deletions)

View changed files

📝 list.go (+25 -0)

📄 Description

This changes add two methods to the List widget, GetFirst and GetLast which returns the first and last item drawn respectively. This is useful if user wants to emulate H and L vim keybinding which moves the cursor top of the page and the bottom of the page.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/rivo/tview/pull/479 **Author:** [@raziman18](https://github.com/raziman18) **Created:** 7/26/2020 **Status:** 🔄 Open **Base:** `master` ← **Head:** `list` --- ### 📝 Commits (3) - [`512e49b`](https://github.com/rivo/tview/commit/512e49b1e452abeabae3577390cde3061274b7de) add new method for list - [`4df6307`](https://github.com/rivo/tview/commit/4df6307f7753b12f1d2727dd9d9550251064d926) add new method for list - [`b7e0be6`](https://github.com/rivo/tview/commit/b7e0be6c9299afdba83628c9f75ccd9a979793f8) Merge branch 'list' of https://github.com/issadarkthing/tview into list ### 📊 Changes **1 file changed** (+25 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `list.go` (+25 -0) </details> ### 📄 Description This changes add two methods to the `List` widget, `GetFirst` and `GetLast` which returns the first and last item drawn respectively. This is useful if user wants to emulate H and L vim keybinding which moves the cursor top of the page and the bottom of the page. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
starred/tview#964
No description provided.