Hi, On Wed, 16 Apr 2008, Jan Kupec wrote:
Would anybody object if a do the following:
$ zypper search zypp
S | Name | Summary | Type | Repository --+--------+---------------------------------+---------+----------- i | zypper | Command line package managem... | package | (multiple)
Just drop the Repository column in this case, it doesn't provide any information if it just contains "multiple". I would leave out the Type column by default if all entries are only "package". I like the idea of abbreviated output (bonus points for taking the environment variable $COLUMNS into account ;-) ). One things that always bugged me in the zypper output are the long repository names, as by default they use their alias as name, which in turn by default is often the URL, and hence extremely long. One possible solution would be to show only made up repository numbers in the table itself, and then follow the table with an index of which repo is meant by which number: ala: ------------------------- S | R | Type | Name | Version | Arch --+---+---------+--------+------------+------- i | 1 | package | zypper | 0.10.4-8 | x86_64 v | 2 | package | zypper | 0.11.0-4.2 | x86_64 v | 3 | package | zypper | 0.10.6-2 | x86_64 v | 2 | package | zypper | 0.11.0-4.2 | i586 v | 3 | package | zypper | 0.10.6-2 | i586 Repos: 1 | @System 2 | zypp:svn 3 | factory ------------------------- That solution might be too nerdy, though (and only required when the repo names are "too long") :-/
$ zypper search --details zypper
S | Repository | Type | Name | Version | Arch --+------------+---------+--------+------------+------- i | @System | package | zypper | 0.10.4-8 | x86_64 v | zypp:svn | package | zypper | 0.11.0-4.2 | x86_64 v | factory | package | zypper | 0.10.6-2 | x86_64 v | zypp:svn | package | zypper | 0.11.0-4.2 | i586 v | factory | package | zypper | 0.10.6-2 | i586
I can move the Name column to the second position here, too.
It's probably not a good idea to have different column orders depending on --details or not. I've no better idea, though :-/ Ciao, Michael. -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org