Skip to content

Commit

Permalink
Fix helps
Browse files Browse the repository at this point in the history
  • Loading branch information
lusingander committed Sep 8, 2024
1 parent 4df600c commit e024dac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/pages/bucket_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ impl BucketListPage {
(&["Enter"], "Open bucket"),
(&["/"], "Filter bucket list"),
(&["o"], "Sort bucket list"),
(&["R"], "Refresh bucket list"),
(&["x"], "Open management console in browser"),
]
} else {
Expand All @@ -200,6 +201,7 @@ impl BucketListPage {
(&["Enter"], "Open bucket"),
(&["/"], "Filter bucket list"),
(&["o"], "Sort bucket list"),
(&["R"], "Refresh bucket list"),
(&["x"], "Open management console in browser"),
]
}
Expand All @@ -226,20 +228,22 @@ impl BucketListPage {
&[
(&["Esc"], "Quit", 0),
(&["j/k"], "Select", 1),
(&["g/G"], "Top/Bottom", 5),
(&["g/G"], "Top/Bottom", 6),
(&["Enter"], "Open", 2),
(&["/"], "Filter", 3),
(&["o"], "Sort", 4),
(&["R"], "Refresh", 5),
(&["?"], "Help", 0),
]
} else {
&[
(&["Esc"], "Clear filter", 0),
(&["j/k"], "Select", 1),
(&["g/G"], "Top/Bottom", 4),
(&["g/G"], "Top/Bottom", 6),
(&["Enter"], "Open", 2),
(&["/"], "Filter", 3),
(&["o"], "Sort", 4),
(&["R"], "Refresh", 5),
(&["?"], "Help", 0),
]
}
Expand Down
8 changes: 6 additions & 2 deletions src/pages/object_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ impl ObjectListPage {
(&["~"], "Go back to bucket list"),
(&["/"], "Filter object list"),
(&["o"], "Sort object list"),
(&["R"], "Refresh object list"),
(&["x"], "Open management console in browser"),
]
} else {
Expand All @@ -224,6 +225,7 @@ impl ObjectListPage {
(&["~"], "Go back to bucket list"),
(&["/"], "Filter object list"),
(&["o"], "Sort object list"),
(&["R"], "Refresh object list"),
(&["x"], "Open management console in browser"),
]
}
Expand All @@ -250,22 +252,24 @@ impl ObjectListPage {
&[
(&["Esc"], "Quit", 0),
(&["j/k"], "Select", 3),
(&["g/G"], "Top/Bottom", 6),
(&["g/G"], "Top/Bottom", 7),
(&["Enter"], "Open", 1),
(&["Backspace"], "Go back", 2),
(&["/"], "Filter", 4),
(&["o"], "Sort", 5),
(&["R"], "Refresh", 6),
(&["?"], "Help", 0),
]
} else {
&[
(&["Esc"], "Clear filter", 0),
(&["j/k"], "Select", 3),
(&["g/G"], "Top/Bottom", 6),
(&["g/G"], "Top/Bottom", 7),
(&["Enter"], "Open", 1),
(&["Backspace"], "Go back", 2),
(&["/"], "Filter", 4),
(&["o"], "Sort", 5),
(&["R"], "Refresh", 6),
(&["?"], "Help", 0),
]
}
Expand Down

0 comments on commit e024dac

Please sign in to comment.