From: Scott Worley Date: Sat, 21 Oct 2023 22:17:05 +0000 (-0700) Subject: View keystrokes for special tags: comp, errand, home, zombie X-Git-Url: http://git.scottworley.com/vopamoi/commitdiff_plain/1b63569cace3349f099ea41de3bf1d19fdd9a630?hp=6281964848ac1e51c70b879e2951daf664afaeb4 View keystrokes for special tags: comp, errand, home, zombie This is a departure from elegance. Ideally, these would be user-configured rather than built-in, or maybe no-configuration-necessary like operating on unique prefixes or something. *shrug*. I want this now, so I'm accepting this inelegance. --- diff --git a/vopamoi.ts b/vopamoi.ts index f039b8c..b739747 100644 --- a/vopamoi.ts +++ b/vopamoi.ts @@ -773,7 +773,10 @@ function handleKey(event: any) { inputState = InputState.Root; if (event.key == "a") return browserUI.setView("all"); if (event.key == "C") return browserUI.setView("cancelled"); + if (event.key == "c") return browserUI.setTagView("comp"); if (event.key == "d") return browserUI.setView("done"); + if (event.key == "e") return browserUI.setTagView("errand"); + if (event.key == "h") return browserUI.setTagView("home"); if (event.key == "i") return browserUI.setUntaggedView(); if (event.key == "p") return browserUI.setTagView("Project"); if (event.key == "q") return browserUI.setView("todo"); @@ -784,6 +787,7 @@ function handleKey(event: any) { if (event.key == "v") return browserUI.resetView(); if (event.key == "w") return browserUI.setView("waiting"); if (event.key == "x") return browserUI.setView("deleted"); + if (event.key == "z") return browserUI.setTagView("zombie"); } else if (inputState === InputState.VS) { inputState = InputState.Root; if (event.key == "m") return browserUI.setView("someday-maybe");