[gnu.emacs] More Dired Questions.

holly@skiff.cis.ohio-state.edu (Joe Hollingsworth) (01/11/90)

Hi folks:

Is there any (easy) way to have dired sort the filenames by extension first,
then by first name.

So for example, the following would change from:
  -rw-r--r--  1 holly        1535 Dec  8 16:17 actual_c_par.c
  -rw-r--r--  1 holly         545 Dec  8 14:38 actual_c_par.h
  -rw-r--r--  1 holly        3602 Jan  9 12:26 actual_c_par.o
  -rw-r--r--  1 holly        2379 Dec  8 16:42 actual_r_par.c
  -rw-r--r--  1 holly         692 Dec  8 15:48 actual_r_par.h
  -rw-r--r--  1 holly        5189 Jan  9 12:26 actual_r_par.o
  -rwxr-xr-x  1 holly       40960 Jan  5 09:33 adgpd
  -rw-r--r--  1 holly        1492 Jan  5 09:57 adgpd.c
  -rw-r--r--  1 holly        1963 Jan  5 09:33 adgpd.o

to

  -rwxr-xr-x  1 holly       40960 Jan  5 09:33 adgpd
  -rw-r--r--  1 holly        1535 Dec  8 16:17 actual_c_par.c
  -rw-r--r--  1 holly        2379 Dec  8 16:42 actual_r_par.c
  -rw-r--r--  1 holly        1492 Jan  5 09:57 adgpd.c
  -rw-r--r--  1 holly         545 Dec  8 14:38 actual_c_par.h
  -rw-r--r--  1 holly         692 Dec  8 15:48 actual_r_par.h
  -rw-r--r--  1 holly        3602 Jan  9 12:26 actual_c_par.o
  -rw-r--r--  1 holly        5189 Jan  9 12:26 actual_r_par.o
  -rw-r--r--  1 holly        1963 Jan  5 09:33 adgpd.o


I'm usually interested in working with one type of file at a time,
(i.e. .c files, or .h files).  And if I do want to switch between
.c & .h, I can easily scan the rightmost side of the Dired buffer
for the correct extension, then find the file I'm after.  (I.e.
if I'm looking for .c, I go to the .c section, then I alphabetically
look for the .c file I'm interested in.  Same goes for .h, etc....)

Thanks in advance,

Joe
Joe Hollingsworth  Computer and Information Science @ OSU
holly@cis.ohio-state.edu  or ...!{att,pyramid,killer}!cis.ohio-state.edu!holly