Skip to content

Commit

Permalink
fix(mode): remove default Home mode, update tests & keybindings
Browse files Browse the repository at this point in the history
Signed-off-by: Deep Panchal <deep302001@gmail.com>
  • Loading branch information
deepanchal committed Jul 5, 2024
1 parent 0499b75 commit b4201b1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
6 changes: 0 additions & 6 deletions .config/config.json5
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
{
"keybindings": {
"Home": {
"<q>": "Quit", // Quit the application
"<Ctrl-d>": "Quit", // Another way to quit
"<Ctrl-c>": "Quit", // Yet another way to quit
"<Ctrl-z>": "Suspend" // Suspend the application
},
"Book": {
"<q>": "Quit",
"<Ctrl-c>": "Quit",
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ mod tests {
let c = Config::new()?;
assert_eq!(
c.keybindings
.get(&Mode::Home)
.get(&Mode::Book)
.unwrap()
.get(&parse_key_sequence("<q>").unwrap_or_default())
.unwrap(),
Expand Down
1 change: 0 additions & 1 deletion src/mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use serde::{Deserialize, Serialize};
#[derive(Default, Debug, Copy, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum Mode {
#[default]
Home,
Book,
Page,
Content,
Expand Down

0 comments on commit b4201b1

Please sign in to comment.