better help display

This commit is contained in:
Kacper Marzecki 2025-03-16 23:18:38 +01:00
parent 519649e672
commit 5eb0b3618a

View File

@ -294,23 +294,33 @@ export default function TaskApp() {
execSync("tmux-td") execSync("tmux-td")
} }
if (input === "1") {
editWithNeovim({ id: randomId(), name: "", completed: false, subtasks: [], content: consoleLog })
}
if (input === "?") { if (input === "?") {
log("=========================="); setTimeout(() => {
log("Keybindings:"); editWithNeovim({
log("j/k - Move up/down"); id: randomId(), name: "", completed: false, subtasks: [], content: `
log("d/u - Move down/up 5 tasks"); ==========================
log("D - remove task"); Keybindings:
log("g/G - Go to top/bottom"); j/k - Move up/down
log("h/l - Navigate parent/subtasks"); d/u - Move down/up 5 tasks
log("a - Add task"); D - remove task
log("s - Add subtask"); g/G - Go to top/bottom
log("e - Edit task in Neovim"); h/l - Navigate parent/subtasks
log("S - Sync (Push/Pull)"); a - Add task
log("space - Toggle completion"); s - Add subtask
log("/ - Search"); e - Edit task in Neovim
log("? - Show help"); S - Sync (Push/Pull)
log("=========================="); space - Toggle completion
setActiveTabName("console") / - Search
? - Show help
==========================
` })
}, 100)
} }
log("Input:", input); log("Input:", input);
}); });