summaryrefslogtreecommitdiff
path: root/internal/ui/table.go
diff options
context:
space:
mode:
authorPaul Bütow <1224732+snonux@users.noreply.github.com>2025-06-20 20:45:30 +0300
committerPaul Bütow <1224732+snonux@users.noreply.github.com>2025-06-20 20:45:30 +0300
commitb65187aa4b9e6c3ebea0605ea002b8858b072f2c (patch)
tree19f7bb8df461b90f72928a3bc7e8a3516735aa8c /internal/ui/table.go
parent438272b134ba537f68884c25f2a015a5218503dd (diff)
Remove delete hotkey
Diffstat (limited to 'internal/ui/table.go')
-rw-r--r--internal/ui/table.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/internal/ui/table.go b/internal/ui/table.go
index 071c9df..d6a71d8 100644
--- a/internal/ui/table.go
+++ b/internal/ui/table.go
@@ -195,14 +195,6 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.reload()
}
}
- case "D":
- if row := m.tbl.SelectedRow(); row != nil {
- idStr := ansi.Strip(row[0])
- if id, err := strconv.Atoi(idStr); err == nil {
- task.Delete(id)
- m.reload()
- }
- }
case "a":
if row := m.tbl.SelectedRow(); row != nil {
idStr := ansi.Strip(row[0])
@@ -247,7 +239,6 @@ func (m Model) View() string {
"E: edit task",
"s: toggle start/stop",
"d: mark task done",
- "D: delete task",
"a: annotate task",
"A: replace annotations",
"q: quit",