diff --git a/README.md b/README.md index 2d630cd..420e01b 100644 --- a/README.md +++ b/README.md @@ -209,6 +209,10 @@ pager: true width: 80 # show all files, including hidden and ignored. all: false +# show line numbers (TUI-mode only) +showLineNumbers: false +# preserve newlines in the output +preserveNewLines: false ``` ## Feedback diff --git a/main.go b/main.go index 68d7f1c..b0d7a77 100644 --- a/main.go +++ b/main.go @@ -170,6 +170,7 @@ func validateOptions(cmd *cobra.Command) error { tui = viper.GetBool("tui") showAllFiles = viper.GetBool("all") preserveNewLines = viper.GetBool("preserveNewLines") + showLineNumbers = viper.GetBool("showLineNumbers") if pager && tui { return errors.New("cannot use both pager and tui")