diff --git a/oviewer/action.go b/oviewer/action.go index 608f4c08..d309699e 100644 --- a/oviewer/action.go +++ b/oviewer/action.go @@ -228,7 +228,7 @@ func (root *Root) setViewMode(input string) { c, ok := root.Config.Mode[input] if !ok { if input != "general" { - root.setMessage(fmt.Sprintf("Not Mode %s", input)) + root.setMessage(fmt.Sprintf("%s mode not found", input)) return } c = root.General @@ -238,7 +238,7 @@ func (root *Root) setViewMode(input string) { root.setWrapHeaderLen() root.Doc.ClearCache() root.ViewSync() - root.setMessage(fmt.Sprintf("Set Mode %s", input)) + root.setMessage(fmt.Sprintf("Set mode %s", input)) } // setDelimiter sets the delimiter string. diff --git a/oviewer/keybind.go b/oviewer/keybind.go index da584428..48816538 100644 --- a/oviewer/keybind.go +++ b/oviewer/keybind.go @@ -238,13 +238,13 @@ func KeyBindString(k KeyBind) string { k.writeKeyBind(&b, actionNextBackSearch, "repeat backward search") fmt.Fprintf(&b, "\n\tChange display\n\n") - k.writeKeyBind(&b, actionViewMode, "view mode selection") k.writeKeyBind(&b, actionWrap, "wrap/nowrap toggle") k.writeKeyBind(&b, actionColumnMode, "column mode toggle") k.writeKeyBind(&b, actionAlternate, "color to alternate rows toggle") k.writeKeyBind(&b, actionLineNumMode, "line number toggle") fmt.Fprintf(&b, "\n\tChange Display with Input\n\n") + k.writeKeyBind(&b, actionViewMode, "view mode selection") k.writeKeyBind(&b, actionDelimiter, "delimiter string") k.writeKeyBind(&b, actionHeader, "number of header lines") k.writeKeyBind(&b, actionTabWidth, "TAB width")