TheR1D / shell_gpt

A command-line productivity tool powered by AI large language models like GPT-4, will help you accomplish your tasks faster and more efficiently.
MIT License
8.81k stars 693 forks source link

Do not force-wrap text when output to file (or piping) #543

Open johnd0e opened 2 months ago

johnd0e commented 2 months ago

Describe the bug When text is output to a file, it is always wrapped at position 79. Lines shorter than 79 characters are padded with spaces until they reach this length.

To Reproduce

sgpt --no-cache "Write a short story">output.md

Expected behavior I expect that the output should not be reformatted/padded in any way