Skip to content

Commit

Permalink
Remove keybinding to reload collection
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasPickering committed Nov 16, 2023
1 parent 0af612a commit 635261c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## [Unreleased] - ReleaseDate

### Changed

- Remove keybinding to reload collection
- Not useful now that the TUI has automatic reloading

### Fixed

- Don't panic if the collection file is invalid on first startup
Expand Down
4 changes: 0 additions & 4 deletions src/tui/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ impl InputEngine {
},
Action::ForceQuit,
),
InputBinding::new(KeyCode::Char('r'), Action::ReloadCollection),
InputBinding::new(KeyCode::Char('x'), Action::OpenSettings),
InputBinding::new(KeyCode::F(2), Action::SendRequest),
InputBinding::new(KeyCode::F(11), Action::Fullscreen),
Expand Down Expand Up @@ -100,9 +99,6 @@ pub enum Action {
/// process to force an exit. Standard shutdown will *still run*, but this
/// input can't be consumed by any components in the view tree.
ForceQuit,
/// Reload the request collection from the same file as the initial load
#[display(fmt = "Reload Collection")]
ReloadCollection,

/// Focus the previous pane
#[display(fmt = "Prev Pane")]
Expand Down
1 change: 0 additions & 1 deletion src/tui/view/component/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ impl Draw<HelpTextProps> for HelpText {
match props.fullscreen_mode {
None => {
actions.extend([
Action::ReloadCollection,
Action::SendRequest,
Action::NextPane,
Action::PreviousPane,
Expand Down
4 changes: 0 additions & 4 deletions src/tui/view/component/primary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,6 @@ impl Component for PrimaryView {
self.selected_pane.next();
Update::Consumed
}
Some(Action::ReloadCollection) => {
context.send_message(Message::CollectionStartReload);
Update::Consumed
}
Some(Action::SendRequest) => {
// Send a request from anywhere
context.queue_event(Event::HttpSendRequest);
Expand Down

0 comments on commit 635261c

Please sign in to comment.