Skip to content
Open
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ oc-stats cache clean

Once the program is running, you can quickly navigate pages and time ranges using the keyboard:

- `Tab` / `Left` / `Right` / `h` / `l` — Switch pages
- `Tab` / `Shift+Tab` / `Left` / `Right` / `h` / `l` — Switch pages
- `Up` / `Down` / `j` / `k` — Move focus within `Models` / `Providers` pages
- `r` — Cycle through time ranges
- `1` / `2` / `3` — Quickly switch time ranges
Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ oc-stats cache clean

程序启动后可通过键盘快速切换页面和统计范围:

- `Tab` / `Left` / `Right` / `h` / `l`:切换页面
- `Tab` / `Shift+Tab` / `Left` / `Right` / `h` / `l`:切换页面
- `Up` / `Down` / `j` / `k`:在 `Models` / `Providers` 页面中移动焦点
- `r`:循环切换统计范围
- `1` / `2` / `3`:快速切换时间范围
Expand Down
4 changes: 2 additions & 2 deletions src/ui/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ impl App {
.status_message
.as_ref()
.map(|status| status.text.as_str())
.unwrap_or("<tab> ←/→ h/l pages | r cycle | 1/2/3 pick | <ctrl-s> share | q exit");
.unwrap_or("<(shift-)tab> ←/→ h/l pages | r cycle | 1/2/3 pick | <ctrl-s> share | q exit");
frame.render_widget(
ratatui::widgets::Paragraph::new(status).style(theme.muted_style()),
area,
Expand Down Expand Up @@ -366,7 +366,7 @@ impl App {
self.search = None;
self.page = self.page.next();
}
KeyCode::Left | KeyCode::Char('h') => {
KeyCode::BackTab | KeyCode::Left | KeyCode::Char('h') => {
self.search = None;
self.page = self.page.previous();
}
Expand Down