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.
inputState = InputState.Root;
if (event.key == "a") return browserUI.setView("all");
if (event.key == "C") return browserUI.setView("cancelled");
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 == "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");
if (event.key == "i") return browserUI.setUntaggedView();
if (event.key == "p") return browserUI.setTagView("Project");
if (event.key == "q") return browserUI.setView("todo");
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 == "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");
} else if (inputState === InputState.VS) {
inputState = InputState.Root;
if (event.key == "m") return browserUI.setView("someday-maybe");