(dired.info)Advanced Dired Mark Commands


Next: Virtual Dired Prev: Omitting Files in Dired Up: Tree Dired Extra

Advanced Mark Commands
======================

`M-('
     (`dired-mark-sexp') Mark files for which PREDICATE returns non-nil.
     With a prefix argument, unflag those files instead.

     The PREDICATE is a lisp expression that can refer to the following
     symbols:
    `inode'
          [integer] the inode of the file (only for `ls -i' output)

    `s'
          [integer] the size of the file for `ls -s' output (usually in
          blocks or, with `-k', in KBytes)

    `mode'
          [string]  file permission bits, e.g., `"-rw-r--r--"'

    `nlink'
          [integer] number of links to file

    `uid'
          [string]  owner

    `gid'
          [string]  group  (If the gid is not displayed by `ls', this
          will still be set (to the same as uid))

    `size'
          [integer] file size in bytes

    `time'
          [string]  the time that `ls' displays, e.g., `"Feb 12 14:17"'

    `name'
          [string]  the name of the file

    `sym'
          [string]  if file is a symbolic link, the linked-to name,
          else `""'

     For example, use
          (equal 0 size)
     to mark all zero length files.

     To find out all not yet compiled Emacs lisp files in a directory,
     dired all `.el' files in the lisp directory using the wildcard
     `*.el'.  Then use `M-(' with
          (not (file-exists-p (concat name "c")))
     to mark all `.el' files without a corresponding `.elc' file.

`M-M'
     (`dired-do-unmark') Unmark marked files by replacing the marker
     with another character.  The new character defaults to a space,
     effectively unmarking them.

`,'
     (`dired-mark-rcs-files') Mark all files that are under RCS control.
     With prefix argument, unflag all those files.  Mentions RCS files
     for which a working file was not found in this buffer.  Type `W'
     (`dired-why') to see them again.

`C-m C-c'
     (`C-m C-c' is the suggested binding for
     `dired-mark-files-compilation-buffer', it is not bound by default.)
     Mark the files mentioned in the `*compilation*' buffer.  With an
     argument, you may specify the other buffer and your own regexp
     instead of `compilation-error-regexp'.  Use `^.+$' (the default
     with a prefix argument) to match complete lines.  In conjunction
     with narrowing the other buffer you can mark an arbitrary list of
     files, one per line, with this command.  If your regexp contains a
     subexpression, i.e.  `\(...\)', that subexpression is taken for
     the file name, else the whole match is used.  Thus you can easily
     strip pre- and suffixes from filenames by using
     `PREFIX\(.+\)POSTFIX' as regexp.

     This is especially useful for a list of files obtained from `M-x
     grep' or output from a similar shell command.

`C-m C-d'
     (`C-m C-d' is the suggested binding for
     `dired-mark-files-from-other-dired-buffer', it is not bound by
     default.) Mark those files in this Dired buffer that have the same
     name as the marked files in the Dired buffer in the other window.

     In short, mark the corresponding files from the other Dired buffer.

`F'
     (`dired-do-find-file') Visit all marked files at once, and display
     them simultaneously.  If you want to keep the dired buffer
     displayed, type `C-x 2' first.  If you want just the marked files
     displayed and nothing else, type `C-x 1' first.

     The current window is split across all files.  Remaining lines go
     to the last window.

     The number of files that can be displayed this way is restricted
     by the height of the current window and the variable
     `window-min-height'.

`dired-mark-extension'
     Mark all files with a certain extension for use in later commands.
     A `.' is not automatically prepended to the string entered.

     When called from lisp, EXTENSION may also be a list of extensions
     and an optional argument MARKER-CHAR specifies the marker used.

`dired-flag-extension'
     Flag all files with a certain extension for deletion.  A `.' is
     *not* automatically prepended to the string entered.

`dired-clean-patch'
     Flag dispensable files created by the `patch' program for deletion.
     See variable `patch-unclean-extensions'.

`dired-clean-tex'
     Flag dispensable files created by TeX, LaTeX and `texinfo' for
     deletion.  See variables `tex-unclean-extensions',
     `texinfo-unclean-extensions', `latex-unclean-extensions' and
     `bibtex-unclean-extensions'.

   Variables used by the above cleanup commands (and in the default
value for variable `dired-omit-extensions'):

`patch-unclean-extensions'
     Default:  `'(".rej" ".orig")'

     List of extensions of dispensable files created by the `patch'
     program.

`tex-unclean-extensions'
     Default:  `'(".toc" ".log" ".aux")'

     List of extensions of dispensable files created by TeX.

`texinfo-unclean-extensions'
     Default: `'(".cp" ".cps" ".fn" ".fns" ".ky" ".kys" ".pg" ".pgs"
     ".tp" ".tps" ".vr" ".vrs")'

     List of extensions of dispensable files created by texinfo.

`latex-unclean-extensions'
     Default: `'(".idx" ".lof" ".lot" ".glo")'

     List of extensions of dispensable files created by LaTeX.

`bibtex-unclean-extensions'
     Default:  `'(".blg" ".bbl")'

     List of extensions of dispensable files created by BibTeX.


automatically generated by info2www