unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* align file name with find-dired
@ 2007-11-30  2:16 Ivan Kanis
  2007-11-30  3:21 ` Billy O'Connor
  0 siblings, 1 reply; 3+ messages in thread
From: Ivan Kanis @ 2007-11-30  2:16 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I am finally trying out find-dired. It looks neat except that filename
are not aligned:

-rw-r--r-- 1 ivan ivan 0 2007-10-30 21:36 auto-save-list/saves-1471-zen~
-rw-r--r-- 1 ivan ivan 134 2007-11-30 03:07 auto-save-list/saves-5829-zen~
-rw-r--r-- 1 ivan ivan 88562 2007-11-29 22:07 !home!ivan!.ido.last~
-rw-r--r-- 1 ivan ivan 384 2007-11-29 20:21 !home!ivan!.url!cookies~

This is due to the size of file being of different width. I have tried
to fix it by tweaking the find-ls-option variable.

I searched the mailing list archive but found nothing.

Any ideas?

Thanks,
-- 
Ivan
http://kanis.fr

Success is counted sweetest
By those who ne'er succeed.
To comprehend a nectar
Requires sorest need.
    -- Emily Dickinson

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: align file name with find-dired
  2007-11-30  2:16 align file name with find-dired Ivan Kanis
@ 2007-11-30  3:21 ` Billy O'Connor
  2007-12-01  9:51   ` Ivan Kanis
  0 siblings, 1 reply; 3+ messages in thread
From: Billy O'Connor @ 2007-11-30  3:21 UTC (permalink / raw)
  To: help-gnu-emacs

Ivan Kanis <expire-by-2007-12-06@kanis.fr> writes:

> Hello,
>
> I am finally trying out find-dired. It looks neat except that filename
> are not aligned:
>
> -rw-r--r-- 1 ivan ivan 0 2007-10-30 21:36 auto-save-list/saves-1471-zen~
> -rw-r--r-- 1 ivan ivan 134 2007-11-30 03:07 auto-save-list/saves-5829-zen~
> -rw-r--r-- 1 ivan ivan 88562 2007-11-29 22:07 !home!ivan!.ido.last~
> -rw-r--r-- 1 ivan ivan 384 2007-11-29 20:21 !home!ivan!.url!cookies~
>
> This is due to the size of file being of different width. I have tried
> to fix it by tweaking the find-ls-option variable.
>
> I searched the mailing list archive but found nothing.
>
> Any ideas?

I see what's happening, the find command is getting the output of one
"ls" command at a time via the "-exec" action.  the regular dired
doesn't have this problem, for it doesn't use that "one at a time"
method of listing the files, and, more importantly(I think) because
dired.el has a funtion called dired-align-file.  This file might be
useful to both dired.el and find-dired.el.

--
Billy O'Connor

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: align file name with find-dired
  2007-11-30  3:21 ` Billy O'Connor
@ 2007-12-01  9:51   ` Ivan Kanis
  0 siblings, 0 replies; 3+ messages in thread
From: Ivan Kanis @ 2007-12-01  9:51 UTC (permalink / raw)
  To: help-gnu-emacs

Billy O'Connor <billyoc@gmail.com> writes:

> Ivan Kanis <expire-by-2007-12-06@kanis.fr> writes:
>
>> I am finally trying out find-dired. It looks neat except that filename
>> are not aligned:
>>
>> -rw-r--r-- 1 ivan ivan 0 2007-10-30 21:36 auto-save-list/saves-1471-zen~
>> -rw-r--r-- 1 ivan ivan 134 2007-11-30 03:07 auto-save-list/saves-5829-zen~
>
> I see what's happening, the find command is getting the output of one
> "ls" command at a time via the "-exec" action.  the regular dired
> doesn't have this problem, for it doesn't use that "one at a time"
> method of listing the files

I could not find an option in ls to format the size of the file so
that it would line up. 

Maybe a better way would be to use find to list directories and then
execute ls on each directories.
-- 
Ivan
http://kanis.fr

  "If the designers of X-Windows built cars, there would be no fewer
than five steering wheels hidden about the cockpit, none of which
followed the same principles -- but you'd be able to shift gears with
your car stereo. Useful feature, that."
    -- Marus J. Ranum , Digital Equipment Corporation

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-12-01  9:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-30  2:16 align file name with find-dired Ivan Kanis
2007-11-30  3:21 ` Billy O'Connor
2007-12-01  9:51   ` Ivan Kanis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).