Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable/Disalbe pager from config #242

Merged
merged 1 commit into from
Feb 4, 2021
Merged

Enable/Disalbe pager from config #242

merged 1 commit into from
Feb 4, 2021

Conversation

lestrrat
Copy link
Contributor

@lestrrat lestrrat commented Feb 3, 2021

The actual pager command can be passed via PAGER env var

fixes #231

The actual pager command can be passed via PAGER env var
@@ -140,6 +140,7 @@ func validateOptions(cmd *cobra.Command) error {
width = viper.GetUint("width")
localOnly = viper.GetBool("local")
mouse = viper.GetBool("mouse")
pager = viper.GetBool("pager")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should make this a bool or let the user specify the pager command as a string here. As it's currently in-line with how the --pager flag works, I think this is already an improvement I'll merge, though. Open for discussion nonetheless.

@muesli muesli added the enhancement New feature or request label Feb 4, 2021
@muesli muesli merged commit 3285903 into charmbracelet:master Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set pager option from within glow.yml
2 participants