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

textwrap support, or newline on space (instead of mid-word) #93

Open
klebs6 opened this issue Feb 11, 2023 · 2 comments
Open

textwrap support, or newline on space (instead of mid-word) #93

klebs6 opened this issue Feb 11, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@klebs6
Copy link

klebs6 commented Feb 11, 2023

Hello! chatgpt-wrapper is awesome! thank you so much for creating it! i love it!

In my shell, the output gets split onto the next line even in the middle of a word.

I'm wondering: what do you think about integrating textwrap? Or, perhaps some other simpler way for lines to break only on spaces.

perhaps there could be a command line flag to activate it.

I am happy to submit a PR if you like! no guarantees I'll get it perfect, but it should be easy enough to add either way!

all the best!

-Tom

@mmabrouk
Copy link
Collaborator

Hey @kleb6, that is a good idea. A PR would be most welcome :)

@mmabrouk mmabrouk added the enhancement New feature or request label Feb 15, 2023
@thehunmonkgroup
Copy link
Collaborator

I'll note that I did poke around a bit to see if this was easy to do, and I didn't find a clear path to addressing it.

Happy to look at a well-considered PR for this enhancement.

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

No branches or pull requests

3 participants