diff options
author | Bruno A. Muciño <[email protected]> | 2020-09-02 16:58:38 +0100 |
---|---|---|
committer | Bruno A. Muciño <[email protected]> | 2020-09-02 16:58:38 +0100 |
commit | 0cd619f386b820b88a1d369d1b5777cc6776922a (patch) | |
tree | b35eb2f348f24eb796534ee1b04bfd477e7d96ad /src/app/impl_self.rs | |
parent | eb890f1cc649f8f250ac83a3f5510d91587a4a8d (diff) |
Resolve requested changes. Merge superfluous match arm and remove aliasfeature/wq-alias
for wq.
Diffstat (limited to 'src/app/impl_self.rs')
-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 { | |||
249 | "tdown" | "track-down" => "track-down <auto-habit-name> (alias: tdown)", | 249 | "tdown" | "track-down" => "track-down <auto-habit-name> (alias: tdown)", |
250 | "q" | "quit" => "quit dijo", | 250 | "q" | "quit" => "quit dijo", |
251 | "w" | "write" => "write current state to disk (alias: w)", | 251 | "w" | "write" => "write current state to disk (alias: w)", |
252 | "wq" | "writeandquit" => "write current state to disk and quit dijo (alias: wq)", | ||
253 | "h"|"?" | "help" => "help [<command>|commands|keys] (aliases: h, ?)", | 252 | "h"|"?" | "help" => "help [<command>|commands|keys] (aliases: h, ?)", |
254 | "cmds" | "commands" => "add, add-auto, delete, month-{prev,next}, track-{up,down}, help, quit", | 253 | "cmds" | "commands" => "add, add-auto, delete, month-{prev,next}, track-{up,down}, help, quit", |
255 | "keys" => "TODO", // TODO (view?) | 254 | "keys" => "TODO", // TODO (view?) |
255 | "wq" => "write current state to disk and quit dijo", | ||
256 | _ => "unknown command or help topic.", | 256 | _ => "unknown command or help topic.", |
257 | } | 257 | } |
258 | ) | 258 | ) |
@@ -261,8 +261,7 @@ impl App { | |||
261 | self.message.set_message("help <command>|commands|keys") | 261 | self.message.set_message("help <command>|commands|keys") |
262 | } | 262 | } |
263 | } | 263 | } |
264 | Command::WriteAndQuit => self.save_state(), | 264 | Command::Quit | Command::Write | Command::WriteAndQuit => self.save_state(), |
265 | Command::Quit | Command::Write => self.save_state(), | ||
266 | Command::MonthNext => self.sift_forward(), | 265 | Command::MonthNext => self.sift_forward(), |
267 | Command::MonthPrev => self.sift_backward(), | 266 | Command::MonthPrev => self.sift_backward(), |
268 | Command::Blank => {} | 267 | Command::Blank => {} |