From eacc10d6250e160374e4d110a2b854d04e09b149 Mon Sep 17 00:00:00 2001 From: kageru Date: Mon, 20 Apr 2020 11:12:45 +0200 Subject: [PATCH] go back to `dd` for deletions --- src/tracc.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tracc.rs b/src/tracc.rs index 1d5a2db..60f352c 100644 --- a/src/tracc.rs +++ b/src/tracc.rs @@ -69,7 +69,12 @@ impl Tracc { } Key::Char('a') | Key::Char('A') => self.set_mode(Mode::Insert)?, Key::Char(' ') => with_focused!(ListView::toggle_current), - Key::Char('d') => with_focused!(ListView::remove_current), + // dd + Key::Char('d') => { + if let Some(Ok(Key::Char('d'))) = inputs.next() { + with_focused!(ListView::remove_current); + } + } Key::Char('p') => with_focused!(ListView::paste), Key::Char('\t') => { self.focus = match self.focus {