From bcd1296ce5e14b8a45b2ffd243eb014a19bb0a3c Mon Sep 17 00:00:00 2001 From: Prithvi Jethwa <42164574+prithvijj@users.noreply.github.com> Date: Wed, 4 Jun 2025 13:41:27 -0400 Subject: [PATCH] fix: allow config file to load `showLineNumbers` (#653) --- README.md | 4 ++++ main.go | 1 + 2 files changed, 5 insertions(+) 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")