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

No option in config.py to set Reformat output or Enable pager #521

Closed
sockduct opened this issue Dec 28, 2022 · 1 comment
Closed

No option in config.py to set Reformat output or Enable pager #521

sockduct opened this issue Dec 28, 2022 · 1 comment

Comments

@sockduct
Copy link

In the example config.py file:
https://github.com/prompt-toolkit/ptpython/blob/master/examples/ptpython_config/config.py

I don't see options to set the following ptpython menu options:

  1. Reformat output (black): On/Off
  2. Enable pager for output: On/Off
@plutonium-239
Copy link

According to repl.py, these options should be:
repl.enable_output_formatting L127
repl.enable_pager L129

This might also be of interest (looks like the definitions of the config variables): https://github.com/prompt-toolkit/ptpython/blob/master/ptpython/python_input.py#L309

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants