I want less
's linewrapping to be smarter... when less
ing through text it's wrapping lines in such a way that words get broken up which makes reading difficult. The smart way would mean only breaking lines on a
"space" character.
Is this possible?
In reading the man page and browsing the internet I surprised to see no other mention or inquiry of this.
If less can't do this is there another pager that can?
edits:
- Ideally this would effect could be toggled with a flag like
--cleanwrap
. - Using this on stdin like
some-report.py | less -i --cleanwrap
is important. - Ideally the pager will adjust to screen/terminal(tmux pane) resizing... maybe less isn't the right tool? This could be sacrificed if the above features were possible :(