mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-26 03:07:18 +02:00
Merge pull request #142 from kdheepak/remove-0-shortcut
This commit is contained in:
commit
f04894d309
3 changed files with 2 additions and 10 deletions
|
@ -47,7 +47,7 @@ Keybindings for task report:
|
||||||
|
|
||||||
!: {string} - Custom shell command
|
!: {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
|
c: context switcher menu - Open context switcher menu
|
||||||
|
|
||||||
|
|
|
@ -103,7 +103,7 @@ Keybindings for task report:
|
||||||
`!`
|
`!`
|
||||||
: {string} - Custom shell command
|
: {string} - Custom shell command
|
||||||
|
|
||||||
`0-9`
|
`1-9`
|
||||||
: {string} - Run user defined shortcuts
|
: {string} - Run user defined shortcuts
|
||||||
|
|
||||||
`c`
|
`c`
|
||||||
|
|
|
@ -1603,14 +1603,6 @@ impl TTApp {
|
||||||
self.mode = AppMode::TaskHelpPopup;
|
self.mode = AppMode::TaskHelpPopup;
|
||||||
} else if input == self.keyconfig.filter {
|
} else if input == self.keyconfig.filter {
|
||||||
self.mode = AppMode::TaskFilter;
|
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 {
|
} else if input == self.keyconfig.shortcut1 {
|
||||||
match self.task_shortcut(1) {
|
match self.task_shortcut(1) {
|
||||||
Ok(_) => self.update(true)?,
|
Ok(_) => self.update(true)?,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue