Skip to content

Commit 7cd3395

Browse files
feat(cli): add scrolling, sorting and filtering to vector top (#24355)
* feat(cli): add support for scrolling in `vector top` Related: #24337 * feat(cli): add support for sorting in `vector top` Related: #24337 * feat(cli): add support for filtering in `vector top` Related: #24337 * feat(cli): add CLI options for sorting and filtering in `vector top` Related: #24337 * feat(cli): align sorting and filtering keybinds in `vector top` * docs: add changelog entry * chore: add keybinds to allowed words * Update changelog.d/24355_vector_top_controls.feature.md Co-authored-by: Thomas <thomasqueirozb@gmail.com> * Move column names to constants * Move filter/sort state sync to ui into methods used in events * Add indicator for sort direction * Add filtering indicator * Add issue reference for errors display * Add a simple macro for sort_fn generation --------- Co-authored-by: Thomas <thomasqueirozb@gmail.com>
1 parent 2a8183a commit 7cd3395

11 files changed

Lines changed: 926 additions & 29 deletions

File tree

.github/actions/spelling/allow.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ KDL
276276
keepappkey
277277
keephq
278278
kenton
279+
keybinds
279280
Kingcom
280281
Kolkata
281282
konqueror

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Added new keybinds to `vector top` for scrolling, sorting and filtering. You can now press `?` when using `vector top` to see all available keybinds.
2+
3+
authors: esensar Quad9DNS

lib/vector-top/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ crossterm = { version = "0.29.0", default-features = false, features = ["event-s
2121
unit-prefix = { version = "0.5.2", default-features = false, features = ["std"] }
2222
num-format = { version = "0.4.4", default-features = false, features = ["with-num-bigint"] }
2323
ratatui = { version = "0.30.0", default-features = false, features = ["crossterm", "layout-cache"] }
24+
regex.workspace = true
2425
vector-common = { path = "../vector-common" }
2526
vector-api-client = { path = "../vector-api-client" }
2627

0 commit comments

Comments
 (0)