1 |
Jason Cooper wrote: |
2 |
> Agreed, would an "auto-adjusting width" be a worthwhile endevour? It |
3 |
> seems kind of pointless to add a commandline option just to increase the |
4 |
> column width two characters, not to mention temporary (tera/peta-byte size |
5 |
> files?). A more robust solution would be for the option to allow the |
6 |
> column width to shrink and grow based on the largest file in the list. |
7 |
|
8 |
Take a look at the NameWidth option here: |
9 |
http://httpd.apache.org/docs-2.0/mod/mod_autoindex.html#indexoptions |
10 |
(ok, its for file names, but the same principle applies) |
11 |
|
12 |
So we could have something like: |
13 |
|
14 |
ls -l |
15 |
- gives sizes as 8 characters as normal |
16 |
|
17 |
ls -l --sizewidth=10 |
18 |
- gives size column as 10 characters |
19 |
|
20 |
ls -l --sizewidth=* |
21 |
- size column auto-expands to fit |
22 |
|
23 |
|
24 |
Daniel |
25 |
|
26 |
-- |
27 |
gentoo-dev@g.o mailing list |