On Wed, Apr 29, 2009 at 02:01:10PM +0200, Hubert Mantel wrote:
Hi,
On Wed, Apr 29, Petr Uzel wrote:
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 :)
Don't we already have that since years? Just compare
You are right. But isn't it better to use something standard, with more features and upstream instead of our own preprocessor (/usr/bin/lessopen.sh) ? I'm not sure, but I think Fedora and Debian use lesspipe too.
less some.rpm less
It's also just one single additional keystroke.
This wills still work :) -- 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