From 5c910bc6cf193725575ef6146dcc8620e7a4a800 Mon Sep 17 00:00:00 2001 From: Akshay Date: Wed, 22 Jul 2020 22:08:50 +0530 Subject: remove debug key binds, add :write command --- src/command.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/command.rs') diff --git a/src/command.rs b/src/command.rs index 850261c..38d48e9 100644 --- a/src/command.rs +++ b/src/command.rs @@ -17,6 +17,7 @@ static COMMANDS: &'static [&'static str] = &[ "month-prev", "month-next", "quit", + "write", "help", ]; @@ -113,6 +114,7 @@ pub enum Command { TrackUp(String), TrackDown(String), Help(Option), + Write, Quit, Blank, } @@ -197,6 +199,7 @@ impl Command { "mprev" | "month-prev" => return Ok(Command::MonthPrev), "mnext" | "month-next" => return Ok(Command::MonthNext), "q" | "quit" => return Ok(Command::Quit), + "w" | "write" => return Ok(Command::Write), "" => return Ok(Command::Blank), s => return Err(CommandLineError::InvalidCommand(s.into())), } -- cgit v1.2.3