~ubuntu-branches/ubuntu/saucy/gnome-user-docs/saucy-proposed

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="files-select">
  <info>
    <link type="guide" xref="files#faq"/>
    <revision pkgversion="3.0" date="2011-03-29" status="final"/>
    <revision pkgversion="3.0" version="3.0.1" date="2011-04-06" status="outdated"/>

    <credit type="author">
      <name>Shaun McCance</name>
      <email>shaunm@gnome.org</email>
    </credit>

    <desc>Press <keyseq><key>Ctrl</key><key>S</key></keyseq> to select multiple files which have similar names.</desc>
    <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
  </info>

  <title>Select files by pattern</title>

  <p>You can select files in a folder using a pattern on the file name.
  Press <keyseq><key>Ctrl</key><key>S</key></keyseq> to bring up the
  <gui>Select Items Matching</gui> window. Type in a pattern using
  common parts of the file names plus wild card characters. There are
  two wild card characters available:</p>

  <list style="compact">
    <item><p><file>*</file> matches any number of any characters, even
    no characters at all.</p></item>
    <item><p><file>?</file> matches exactly one of any character.</p></item>
  </list>

  <p>For example:</p>

  <list>
    <item><p>If you have an OpenDocument Text file, a PDF file, and an
    image that all have the same base name <file>Invoice</file>, select
    all three with the pattern</p>
    <example><p><file>Invoice.*</file></p></example></item>
    
    <item><p>If you have some photos that are named like <file>Vacation-001.jpg</file>,
    <file>Vacation-002.jpg</file>, <file>Vacation-003.jpg</file>; select them all
    with the pattern</p>
    <example><p><file>Vacation-???.jpg</file></p></example></item>
    
    <item><p>If you have photos as before, but you've edited some of them and
    added <file>-edited</file> to the end of the file name of the photos you've
    edited, select the edited photos with</p>
    <example><p><file>Vacation-???-edited.jpg</file></p></example></item>
  </list>
</page>