Skip to content

Commit

Permalink
Merge pull request #582 from noborus/improve-help
Browse files Browse the repository at this point in the history
Improved help explanations
  • Loading branch information
noborus authored Jun 26, 2024
2 parents 755a4f7 + 1d60430 commit a76365c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions oviewer/keybind.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down

0 comments on commit a76365c

Please sign in to comment.