From 1d604301d030271fdb6df5f89d4389fe542bb209 Mon Sep 17 00:00:00 2001 From: Noboru Saito Date: Wed, 26 Jun 2024 15:39:33 +0900 Subject: [PATCH] Improved help explanations --- main.go | 2 +- oviewer/keybind.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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")