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

Wrap text along word boundaries with the command :enable-word-wrap #1251

Open
maxim-lbmv opened this issue Apr 5, 2024 · 0 comments
Open
Labels
enhancement Feature Request

Comments

@maxim-lbmv
Copy link

To make it easier to view long messages, you can use the text wrapping feature. But it works a little incorrectly, it transfers the text letter by letter, breaking the words, making it difficult to read the message.

Is it possible to change the behaviour of the wrap function so that it breaks text at word boundaries?

If there is a need to preserve the current behaviour, then you can add an argument to the command that will describe the desired behaviour. Below I have given an example of possible argument values.

NoWrap
no wrapping will be performed.

WordWrap
wrapping is done on word boundaries only. If a word is too long, it goes out of bounds.

WrapAnywhere
wrapping is done at any point on a line, even if it occurs in the middle of a word.

Wrap
if possible, wrapping occurs at a word boundary; otherwise it will occur at the appropriate point on the line, even in the middle of a word.

@maxim-lbmv maxim-lbmv added the enhancement Feature Request label Apr 5, 2024
@maxim-lbmv maxim-lbmv changed the title Add mode to :enable-word-wrap command Wrap text along word boundaries with the command :enable-word-wrap Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature Request
Projects
None yet
Development

No branches or pull requests

1 participant