diff options
author | Bruno A. Muciño <mucinoab@gmail.com> | 2020-09-02 10:58:38 -0500 |
---|---|---|
committer | Bruno A. Muciño <mucinoab@gmail.com> | 2020-09-02 10:58:38 -0500 |
commit | 0cd619f386b820b88a1d369d1b5777cc6776922a (patch) | |
tree | b35eb2f348f24eb796534ee1b04bfd477e7d96ad | |
parent | eb890f1cc649f8f250ac83a3f5510d91587a4a8d (diff) |
Resolve requested changes. Merge superfluous match arm and remove alias
for wq.
-rw-r--r-- | src/app/impl_self.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/app/impl_self.rs b/src/app/impl_self.rs index ce99702..1114d50 100644 --- a/src/app/impl_self.rs +++ b/src/app/impl_self.rs @@ -249,10 +249,10 @@ impl App { "tdown" | "track-down" => "track-down <auto-habit-name> (alias: tdown)", "q" | "quit" => "quit dijo", "w" | "write" => "write current state to disk (alias: w)", - "wq" | "writeandquit" => "write current state to disk and quit dijo (alias: wq)", "h"|"?" | "help" => "help [<command>|commands|keys] (aliases: h, ?)", "cmds" | "commands" => "add, add-auto, delete, month-{prev,next}, track-{up,down}, help, quit", "keys" => "TODO", // TODO (view?) + "wq" => "write current state to disk and quit dijo", _ => "unknown command or help topic.", } ) @@ -261,8 +261,7 @@ impl App { self.message.set_message("help <command>|commands|keys") } } - Command::WriteAndQuit => self.save_state(), - Command::Quit | Command::Write => self.save_state(), + Command::Quit | Command::Write | Command::WriteAndQuit => self.save_state(), Command::MonthNext => self.sift_forward(), Command::MonthPrev => self.sift_backward(), Command::Blank => {} |