diff --git a/main.go b/main.go index bcc4582b..8cbd4d30 100644 --- a/main.go +++ b/main.go @@ -409,7 +409,7 @@ func init() { rootCmd.PersistentFlags().BoolP("section-header", "", false, "enable section-delimiter line as Header") _ = viper.BindPFlag("general.SectionHeader", rootCmd.PersistentFlags().Lookup("section-header")) - rootCmd.PersistentFlags().IntP("section-header-num", "", 1, "number of header lines") + rootCmd.PersistentFlags().IntP("section-header-num", "", 1, "number of section header lines") _ = viper.BindPFlag("general.SectionHeaderNum", rootCmd.PersistentFlags().Lookup("section-header-num")) rootCmd.PersistentFlags().BoolP("follow-mode", "f", false, "monitor file and display new content as it is written") diff --git a/oviewer/keybind.go b/oviewer/keybind.go index d63df536..ddd2279c 100644 --- a/oviewer/keybind.go +++ b/oviewer/keybind.go @@ -331,7 +331,6 @@ func (k KeyBind) String() string { k.writeKeyBind(&b, actionAlternate, "alternate rows of style toggle") k.writeKeyBind(&b, actionLineNumMode, "line number toggle") k.writeKeyBind(&b, actionPlain, "original decoration toggle(plain)") - k.writeKeyBind(&b, actionHideOther, "toggle hide other section") writeHeader(&b, "Change Display with Input") k.writeKeyBind(&b, actionViewMode, "view mode selection") @@ -349,7 +348,8 @@ func (k KeyBind) String() string { k.writeKeyBind(&b, actionPrevSection, "previous section") k.writeKeyBind(&b, actionLastSection, "last section") k.writeKeyBind(&b, actionFollowSection, "follow section mode toggle") - k.writeKeyBind(&b, actionSectionNum, "section header number") + k.writeKeyBind(&b, actionSectionNum, "number of section header lines") + k.writeKeyBind(&b, actionHideOther, "toggle hide other section") writeHeader(&b, "Close and reload") k.writeKeyBind(&b, actionCloseFile, "close file")