summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2022-02-01 22:26:47 +0100
committerTom Smeding <tom@tomsmeding.com>2022-02-01 22:26:47 +0100
commit0eff004dcb63870251c715460430ea2dc964d718 (patch)
tree883671b1cdb63223a361b78b6934e2f267a30134
parente138113b1feb97200db61d3e26d4a550b6495078 (diff)
Immediately edit description after checkin
-rw-r--r--main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 5432ea2..e0b78e0 100644
--- a/main.cpp
+++ b/main.cpp
@@ -80,6 +80,9 @@ int main(int argc, char **argv) {
}
got::checkIn(*choice);
gui::showNotification("Checked in to sheet '" + *choice + "'");
+ if (auto descr = gui::promptText("Set text for this '" + *choice + "' entry:")) {
+ got::editRunning(*descr);
+ }
}
});
@@ -97,6 +100,9 @@ int main(int argc, char **argv) {
if (got::getRunning()) got::checkOut();
got::checkIn("misc");
gui::showNotification("Switched to 'misc'");
+ if (auto descr = gui::promptText("Set text for this 'misc' entry:")) {
+ got::editRunning(*descr);
+ }
});
matcher.addSequence({Config::TRIGGER_KEY_X}, []() {