-
-
Notifications
You must be signed in to change notification settings - Fork 576
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
Stop words breaking across lines. #641
Comments
Oh, I have also just realised that when using less it doesn't word wrap at all, any idea on that one too? I am guessing this is just a setting I have missed? |
You can make echo wrap on words there is option for that in echo less don't wrap because this how native less works you need to use left/right arrow to show more. |
Ah thats good news about echo. Ah you are absolutely right about less, but its unfortunate in my case as I want to use it to read paragraphs of text. Is there an easy way of turning off this functionality? so it word wraps like echo within the less command? If not I will have to write a hack before it to insert \n chars in the right places, which I don't really want to do. |
You would need to modify less plugin. I can check how hard it would be to add options to less. You can also try it yourself. |
That would be great if you could have a look. |
You need to modify function |
or maybe even before the lines get printed so you don't split lines each time less render text that can happen a lot on scroll. |
I think it would be better to modify function |
Hm, that run function isnt clear how it would take the fix. Oh right. if I am understand what you said above correctly? should I wait and you are going to add options into less to do this today? |
Updated less plugin, it now have two more options: |
Ahh this is great. |
Looks like it has the latest release on there. Sorry that was obvious. |
No, I need to release new version first, it make take few days I have on feature that I can add to this version, which will be 2.21.0. |
Thanks! |
The version of the file is devel branch I've accidentally pushed to master so I've removed the commit that was adding the fix. |
ok np. I'll wait for the new version instead of copying the js file and linking to that. |
Hi, any word on getting this in a new release? |
Sorry I didn't had much time to fix the other issue to release new version. In fact I've completely forgot that I need to release new version. Will fix that other issue and create that other feature maybe in this week.
|
I've just finished fixing one bug and added the feature that I wanted in 2.21.0 it will be released soon after GitHub solve their issues, because I want my CI script to run, so I it can test the code on the server. It's works locally but I want my tests to run on the server as well. |
Version 2.21.0 got released. |
Thanks for this! I'll try out the new features today. Appreciate it. |
Hello,
By default if you echo a line longer than the terminal if it happens land in the middle of the word the terminal does not carry the word over to the next line but splits it so some chars are on one line and others on the next. This makes things quite hard to read for a paragraph of text.
Is there a way of preventing this?
Thanks
The text was updated successfully, but these errors were encountered: