From 51d4b126b1abb087533985f789d7a95b3b4369b1 Mon Sep 17 00:00:00 2001 From: Graham Clark Date: Mon, 27 Jul 2020 01:05:08 -0400 Subject: [PATCH] Let the user know when a mark is successfully set --- ui/ui.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/ui.go b/ui/ui.go index 562a5a5..6f9080d 100644 --- a/ui/ui.go +++ b/ui/ui.go @@ -1441,6 +1441,7 @@ func vimKeysMainView(evk *tcell.EventKey, app gowid.IApp) bool { summary = psmlSummary(Loader.PacketPsmlData[pos.Row]).String() } marksMap[evk.Rune()] = termshark.JumpPos{Pos: pos.Row, Summary: summary} + OpenMessage(fmt.Sprintf("Local mark '%c' set.", evk.Rune()), appView, app) } else { OpenError(fmt.Sprintf("No packet in focus: %v", err), app) } @@ -1465,6 +1466,8 @@ func vimKeysMainView(evk *tcell.EventKey, app gowid.IApp) bool { Filename: Loader.Pcap(), } termshark.SaveGlobalMarks(globalMarksMap) + OpenMessage(fmt.Sprintf("Global mark '%c' set.", evk.Rune()), appView, app) + } else { OpenError(fmt.Sprintf("No packet in focus: %v", err), app) }