From a9d63ebf2449960910d05d19e60c5b628e10d90a Mon Sep 17 00:00:00 2001 From: Matthew Coleman Date: Fri, 26 Jan 2024 11:58:05 -0500 Subject: [PATCH] Clean-up --- internal/lib/display_termdash.go | 8 ++++---- internal/lib/display_tview.go | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/internal/lib/display_termdash.go b/internal/lib/display_termdash.go index 5aeda66..4fd5556 100644 --- a/internal/lib/display_termdash.go +++ b/internal/lib/display_termdash.go @@ -38,14 +38,14 @@ func keyboardTermdashHandler(key *terminalapi.Keyboard) { switch key.Key { case keyboard.KeyEsc: // Escape quits the program. - slog.Debug("Quitting ...") + slog.Debug("Quitting.") currentCtx = context.WithValue(currentCtx, "quit", true) cancel() appTermdash.Close() case keyboard.KeyTab: // Tab switches display modes. - slog.Debug("Next ...") + slog.Debug("Switching display mode.") interruptChan <- true currentCtx = context.WithValue(currentCtx, "advanceDisplayMode", true) @@ -53,7 +53,7 @@ func keyboardTermdashHandler(key *terminalapi.Keyboard) { appTermdash.Close() case 'n': // 'n' switches queries. - slog.Debug("Next query ...") + slog.Debug("Switching query.") interruptChan <- true currentCtx = context.WithValue(currentCtx, "advanceQuery", true) @@ -61,7 +61,7 @@ func keyboardTermdashHandler(key *terminalapi.Keyboard) { appTermdash.Close() case ' ': // Space pauses. - slog.Debug("Pausing ...") + slog.Debug("Pausing.") pauseDisplayChan <- true pauseQueryChans[currentCtx.Value("query").(string)] <- true diff --git a/internal/lib/display_tview.go b/internal/lib/display_tview.go index db2ba10..8ae2cab 100644 --- a/internal/lib/display_tview.go +++ b/internal/lib/display_tview.go @@ -24,7 +24,7 @@ func keyboardTviewHandler(event *tcell.EventKey) *tcell.EventKey { switch key := event.Key(); key { case tcell.KeyEscape: // Escape quits the program. - slog.Debug("Quitting ...") + slog.Debug("Quitting.") currentCtx = context.WithValue(currentCtx, "quit", true) appTview.Stop() @@ -32,7 +32,7 @@ func keyboardTviewHandler(event *tcell.EventKey) *tcell.EventKey { switch event.Rune() { case 'n': // 'n' switches queries. - slog.Debug("Next query ...") + slog.Debug("Switching query.") go func() { // When a user presses Tab, stop the display but continue running. @@ -42,7 +42,7 @@ func keyboardTviewHandler(event *tcell.EventKey) *tcell.EventKey { }() case ' ': // Space pauses. - slog.Debug("Pausing ...") + slog.Debug("Pausing.") go func() { pauseDisplayChan <- true @@ -51,7 +51,7 @@ func keyboardTviewHandler(event *tcell.EventKey) *tcell.EventKey { } case tcell.KeyTab: // Tab switches display modes. - slog.Debug("Next display mode ...") + slog.Debug("Switching display mode.") go func() { interruptChan <- true