Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(list)!: add list navigation methods (first, last, previous, next) #1159

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion BREAKING-CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ This is a quick summary of the sections below:

## Unreleased

### List no clamps the selected index to list ([#1159])

[#1149]: https://github.com/ratatui-org/ratatui/pull/1149

The `List` widget now clamps the selected index to the bounds of the list when navigating with
`first`, `last`, `previous`, and `next`, as well as when setting the index directly with `select`.

Previously selecting an index past the end of the list would show treat the list as having a
selection which was not visible. Now the last item in the list will be selected instead.

### Prelude items added / removed ([#1149])

The following items have been removed from the prelude:
Expand Down Expand Up @@ -100,7 +110,6 @@ To update your app:
+ let position: some_crate::Position = ...;
```

[#1149]: https://github.com/ratatui-org/ratatui/pull/1149

### Termion is updated to 4.0 [#1106]

Expand Down
Loading