Skip to content

Commit

Permalink
Change default keybind for reset action
Browse files Browse the repository at this point in the history
I forgot r is already used for the request/response pane. I went with z because it's kinda like undo, which is ctrl-z.
  • Loading branch information
LucasPickering committed Sep 23, 2024
1 parent c97904e commit 92f7553
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
- Add `slumber new` subcommand to generate new collection files [#376](https://github.com/LucasPickering/slumber/issues/376)
- Add `default` field to profiles
- When using the CLI, the `--profile` argument can be omitted to use the default profile
- Reset edited recipe values to their default using `r`
- Reset edited recipe values to their default using `z`
- You can [customize the key](https://slumber.lucaspickering.me/book/api/configuration/input_bindings.html) to whatever you want
- Add `selector_mode` field to chains, to control how single vs multiple results from a JSONPath selector are handled
- Previously, if a selector returned multiple results, an error was returned. Now, the result list will be rendered as a JSON array. To return to the previous behavior, set `selector_mode: single` in your chain.
Expand Down
2 changes: 1 addition & 1 deletion crates/tui/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ impl Default for InputEngine {
Action::Toggle => KeyCode::Char(' ').into(),
Action::Cancel => KeyCode::Esc.into(),
Action::Edit => KeyCode::Char('e').into(),
Action::Reset => KeyCode::Char('r').into(),
Action::Reset => KeyCode::Char('z').into(),
Action::SelectProfileList => KeyCode::Char('p').into(),
Action::SelectRecipeList => KeyCode::Char('l').into(),
Action::SelectRecipe => KeyCode::Char('c').into(),
Expand Down

0 comments on commit 92f7553

Please sign in to comment.