From 5eb0b3618afbf8a7c136464572e44c84d85a5aff Mon Sep 17 00:00:00 2001 From: Kacper Marzecki Date: Sun, 16 Mar 2025 23:18:38 +0100 Subject: [PATCH] better help display --- source/app.js | 42 ++++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/source/app.js b/source/app.js index f328a0b..2b7b031 100644 --- a/source/app.js +++ b/source/app.js @@ -294,23 +294,33 @@ export default function TaskApp() { execSync("tmux-td") } + + if (input === "1") { + editWithNeovim({ id: randomId(), name: "", completed: false, subtasks: [], content: consoleLog }) + } + if (input === "?") { - log("=========================="); - log("Keybindings:"); - log("j/k - Move up/down"); - log("d/u - Move down/up 5 tasks"); - log("D - remove task"); - log("g/G - Go to top/bottom"); - log("h/l - Navigate parent/subtasks"); - log("a - Add task"); - log("s - Add subtask"); - log("e - Edit task in Neovim"); - log("S - Sync (Push/Pull)"); - log("space - Toggle completion"); - log("/ - Search"); - log("? - Show help"); - log("=========================="); - setActiveTabName("console") + setTimeout(() => { + editWithNeovim({ + id: randomId(), name: "", completed: false, subtasks: [], content: ` + ========================== + Keybindings: + j/k - Move up/down + d/u - Move down/up 5 tasks + D - remove task + g/G - Go to top/bottom + h/l - Navigate parent/subtasks + a - Add task + s - Add subtask + e - Edit task in Neovim + S - Sync (Push/Pull) + space - Toggle completion + / - Search + ? - Show help + ========================== + ` }) + + }, 100) } log("Input:", input); });