diff --git a/README.md b/README.md index 1e811677..4cc40a0c 100644 --- a/README.md +++ b/README.md @@ -184,6 +184,10 @@ pager: true width: 80 # show all files, including hidden and ignored. all: true +# 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 fb3ce57e..e331dbf5 100644 --- a/main.go +++ b/main.go @@ -148,6 +148,7 @@ func validateOptions(cmd *cobra.Command) error { pager = viper.GetBool("pager") showAllFiles = viper.GetBool("all") preserveNewLines = viper.GetBool("preserveNewLines") + showLineNumbers = viper.GetBool("showLineNumbers") // validate the glamour style style = viper.GetString("style")