Skip to content

Commit

Permalink
Merge pull request #635 from noborus/help-description
Browse files Browse the repository at this point in the history
help descriptions for better clarity
noborus authored Oct 9, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents ea9fda2 + 82d5e61 commit 092323c
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -370,8 +370,8 @@ func init() {
rootCmd.PersistentFlags().StringVarP(&nonMatchFilter, "non-match-filter", "", "", "filter non match search pattern")
rootCmd.PersistentFlags().BoolVarP(&oviewer.SkipExtract, "skip-extract", "", false, "skip extracting compressed files")

rootCmd.PersistentFlags().BoolVarP(&alignF, "align", "l", false, "align column")
rootCmd.PersistentFlags().BoolVarP(&rawF, "raw", "r", false, "raw output of escape sequences")
rootCmd.PersistentFlags().BoolVarP(&alignF, "align", "l", false, "align the output columns for better readability")
rootCmd.PersistentFlags().BoolVarP(&rawF, "raw", "r", false, "raw escape sequences without processing")

// Config.General
rootCmd.PersistentFlags().StringP("converter", "", "es", "converter [es|raw|align]")
2 changes: 1 addition & 1 deletion oviewer/content.go
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ var SpaceContent = content{
style: tcell.StyleDefault,
}

// ShrinkContent is a content that represents a shrinked column.
// ShrinkContent is a content that represents a shrunk column.
var ShrinkContent = content{
mainc: Shrink,
combc: nil,
2 changes: 1 addition & 1 deletion oviewer/convert_es_test.go
Original file line number Diff line number Diff line change
@@ -254,7 +254,7 @@ func Test_parseCSI(t *testing.T) {
},
},
{
name: "test-atributesNone",
name: "test-attributesNone",
args: args{
params: "28",
},
4 changes: 2 additions & 2 deletions oviewer/input_search_test.go
Original file line number Diff line number Diff line change
@@ -278,14 +278,14 @@ func Test_stripBackSlash(t *testing.T) {
want string
}{
{
name: "nonEsacpe",
name: "nonEscape",
args: args{
str: "\test",
},
want: "\test",
},
{
name: "nonEsacpe2",
name: "nonEscape2",
args: args{
str: "!test",
},
6 changes: 3 additions & 3 deletions oviewer/keybind.go
Original file line number Diff line number Diff line change
@@ -353,8 +353,8 @@ func (k KeyBind) String() string {
k.writeKeyBind(&b, actionTabWidth, "TAB width")
k.writeKeyBind(&b, actionMultiColor, "multi color highlight")
k.writeKeyBind(&b, actionJumpTarget, "jump target(`.n` or `n%` or `section` allowed)")
k.writeKeyBind(&b, actionAlignFormat, "align format")
k.writeKeyBind(&b, actionRawFormat, "raw format")
k.writeKeyBind(&b, actionAlignFormat, "align columns")
k.writeKeyBind(&b, actionRawFormat, "raw output")
k.writeKeyBind(&b, actionConvertType, "convert type selection")

writeHeader(&b, "Section")
@@ -365,7 +365,7 @@ func (k KeyBind) String() string {
k.writeKeyBind(&b, actionLastSection, "last section")
k.writeKeyBind(&b, actionFollowSection, "follow section mode toggle")
k.writeKeyBind(&b, actionSectionNum, "number of section header lines")
k.writeKeyBind(&b, actionHideOther, "toggle hide other section")
k.writeKeyBind(&b, actionHideOther, `hide "other" section toggle`)

writeHeader(&b, "Close and reload")
k.writeKeyBind(&b, actionCloseFile, "close file")
2 changes: 1 addition & 1 deletion oviewer/mouse_test.go
Original file line number Diff line number Diff line change
@@ -76,7 +76,7 @@ func TestRoot_mouseEvent(t *testing.T) {
want: false,
},
{
name: "testShifWheelUp",
name: "testShiftWheelUp",
fields: fields{
ev: tcell.NewEventMouse(0, 0, tcell.WheelUp, tcell.ModShift),
},

0 comments on commit 092323c

Please sign in to comment.