Skip to content

Commit

Permalink
Let the user know when a mark is successfully set
Browse files Browse the repository at this point in the history
  • Loading branch information
gcla committed Jul 27, 2020
1 parent ab80a10 commit 51d4b12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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)
}
Expand Down

0 comments on commit 51d4b12

Please sign in to comment.