[opensuse-factory] Re: [RESULTS] Czech Packagers Team Meeting minutes 2009-04-21
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
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 less some.rpm less <some.rpm It's also just one single additional keystroke.
Petr Uzel, Packages maintainer
Hubert Mantel -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
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 <some.rpm
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
participants (2)
-
Hubert Mantel
-
Petr Uzel