From 08bf091b5b736ea5069bf0a74ea999d1db9de10d Mon Sep 17 00:00:00 2001 From: Dheepak Krishnamurthy Date: Thu, 18 Mar 2021 08:59:04 -0600 Subject: [PATCH 1/2] Remove support for using 0 as shortcut key --- src/app.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/app.rs b/src/app.rs index 9254178..3346948 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1603,14 +1603,6 @@ impl TTApp { self.mode = AppMode::TaskHelpPopup; } else if input == self.keyconfig.filter { self.mode = AppMode::TaskFilter; - } else if input == self.keyconfig.shortcut0 { - match self.task_shortcut(0) { - Ok(_) => self.update(true)?, - Err(e) => { - self.mode = AppMode::TaskError; - self.error = e; - } - } } else if input == self.keyconfig.shortcut1 { match self.task_shortcut(1) { Ok(_) => self.update(true)?, From 9c9476d7508793596de7a8ea052184f2e8476c26 Mon Sep 17 00:00:00 2001 From: Dheepak Krishnamurthy Date: Thu, 18 Mar 2021 09:00:31 -0600 Subject: [PATCH 2/2] Update documentation --- KEYBINDINGS.md | 2 +- docs/taskwarrior-tui.1.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/KEYBINDINGS.md b/KEYBINDINGS.md index 877eb08..3667b5f 100644 --- a/KEYBINDINGS.md +++ b/KEYBINDINGS.md @@ -47,7 +47,7 @@ Keybindings for task report: !: {string} - Custom shell command - 0-9: {string} - Run user defined shortcuts + 1-9: {string} - Run user defined shortcuts c: context switcher menu - Open context switcher menu diff --git a/docs/taskwarrior-tui.1.md b/docs/taskwarrior-tui.1.md index 8461dcb..87f4391 100644 --- a/docs/taskwarrior-tui.1.md +++ b/docs/taskwarrior-tui.1.md @@ -103,7 +103,7 @@ Keybindings for task report: `!` : {string} - Custom shell command -`0-9` +`1-9` : {string} - Run user defined shortcuts `c`