You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, we have a linewrap key in our configure that allows you to specify the max width of a line before wrapping. It's useful for customizing, but it could be automatic instead of manual. Python can detect the user's terminal size and use that.
Example Usage
Perhaps simply having an "auto" value for the linewrap key in the config would be enough:
linewrap: auto
Then jrnl would need to read that key and interpret it appropriately.
Other information
Relevant python function: os.get_terminal_size() would do the trick. However! It is possible for it to fire an exception if there's no terminal (like perhaps in a headless configuration?) so jrnl would need to catch that and revert to a default value for the duration of the program if it fires.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Feature Request
Use Case/Motivation
Right now, we have a
linewrap
key in our configure that allows you to specify the max width of a line before wrapping. It's useful for customizing, but it could be automatic instead of manual. Python can detect the user's terminal size and use that.Example Usage
Perhaps simply having an "auto" value for the linewrap key in the config would be enough:
Then jrnl would need to read that key and interpret it appropriately.
Other information
Relevant python function: os.get_terminal_size() would do the trick. However! It is possible for it to fire an exception if there's no terminal (like perhaps in a headless configuration?) so jrnl would need to catch that and revert to a default value for the duration of the program if it fires.
The text was updated successfully, but these errors were encountered: