Skip to content

Commit

Permalink
Improve key navigation help texts
Browse files Browse the repository at this point in the history
  • Loading branch information
Rantanen committed Sep 6, 2022
1 parent a2e5827 commit 80ae1ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ui/views/main_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ impl<B: Backend> View<B> for MainView
fn help_text(&self, _state: &UiContext, _size: Rect) -> String
{
format!("{}\n{}",
"[Up/Down,j/k]: Previous/Next request ([Shift]: Follow connection); [F12]: Export session to file; [Shift-Q]: Quit",
"[F]: Manage filters")
"[Up/Down,j/k]: Previous/Next request ([Shift]: Follow connection); [Esc]: Stick to last; [F12]: Export session to file; [Shift-Q]: Quit",
"[f]: Manage filters; [Tab]: Change panel focus")
}
}

Expand Down
7 changes: 5 additions & 2 deletions src/ui/views/message_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ impl<B: Backend> View<B> for MessageView

fn help_text(&self, _session: &UiContext, _size: Rect) -> String
{
"Up/Down, j/k, PgUp/PgDn: Scroll; Tab: Switch Request/Response; F12: Export to file"
.to_string()
format!(
"{}\n{}",
"[Up/Down, j/k, PgUp/PgDn]: Scroll; [Tab]: Switch Request/Response; [F12]: Export to file",
"[q/e]: Toggle request/response, [Esc]: Back to main view"
)
}
}

0 comments on commit 80ae1ef

Please sign in to comment.