On Wed, Apr 29, 2009 at 11:32:55AM +0200, Michael Matz wrote:
Hi,
On Wed, 29 Apr 2009, Petr Uzel wrote:
(2) less default behavior and lesspipe
Currently, less uses a preprocessor that makes it easy to view even compressed or binary files such as PDFs. We had a discussion about this behavior - whether the preprocessor should be enabled by default or not. No consensus was made among the team, though.
In a different life I once worked at a place where they had implemented a fairly useful mechanism into their less preprocessor. It was active by default (interpreting all kinds of formats, much more than us), but you could deactivate it very easily by appending a ':' to the filename. So # less paper.pdf would show a formated text-only output of the PDF contents, whereas # less paper.pdf: would show the binary blob as is.
That was extremely convenient. Just another data point.
I think this is exactly what lesspipe does. So I guess it is just '+1' for lesspipe integration :) -- Best regards / s pozdravem Petr Uzel, Packages maintainer --------------------------------------------------------------------- SUSE LINUX, s.r.o. e-mail: puzel@suse.cz Lihovarská 1060/12 tel: +420 284 028 964 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org