~~~~~~~~~~~~~~~~~
Edit, Dec. 17, 2014. Less, version 470, has been attached to message
http://murga-linux.com/puppy/viewtopic. ... ost#815558.
The new "read pdf as txt" script is in the message just above it. Enjoy!
~~~~~~~~~~~~~~~~~
Edit, Dec. 20, 2013. For latest compile of less version 458, please go to:
http://murga-linux.com/puppy/viewtopic. ... ost#745241
(I've deleted the version 451 that was attached to this initial post.)
Thanks.
~~~~~~~~~~~~~~~~~
Update, April 25, 2013: less-458 is out. See message at bottom of page.
- Update, Jan. 11, 2013 : I forgot to indicate the link to the less website, which is http://www.greenwoodsoftware.com/less.
Update, Aug. 31, 2012.
Here is less 4.51, dated July 2012, compiled from source. This pet includes lesspipe and numerous right-click accesses. More compact size than v. 4-44 obtained by stripping and upx'ing of executable. This one also replaces outright the "defaulttextviewer" file.
From the less viewer, if you need to edit a file, press "V" and the file will load in your text editor. You will be brought back to the less viewer upon closing your editor.
Enjoy!
/////////////////
Rationale:
The less included by default in Puppy is the cut-down version integrated in busybox. It does the job, barely. If you need more sophisticated viewing capacity, then you need this full version of less.
For example I've replaced Puppy's defaulttextviewer with less-4.51, with no regrets. It loads the text extremely fast, it allows you to view text -- or binary material, which leafpad, nicodedit or even geany do not load at all.
This pet also comprises (minimal) docs created by the compilation. Look for "less.hlp" under /usr/local/share/doc and view it with... less ??
(You can also view the help file of less while reading any other text, simply by typing "h". After you've consulted less's help, type "q" to return to reading your initial text.)
The default text viewer has been replaced with this script:
Code: Select all
#!/bin/sh
# /usr/local/bin/defaulttextviewer
####
urxvt -fn "xft:Aerial Mono:pixelsize=13" -fg "#D8FDDB" -bg "#786849" -sr +st +tcw -bc -T "Aperçu de \"$@\"" -n "Aperçu de \"$@\"" -tr -tint black -sh 57 -bd firebrick4 -g 84x25+320+24 -cr white -b 4 -e less-444 -B -J -m -N -~ "$1"
# exec nicoedit "$@"
# or perhaps
# exec leafpad "$@"
As an aside, I've got the docs in a series of 8 jpg panels for easy consultation. If there's a request, I'll make them available here also.
Have a great day!
P.S. A screenshot is included.