<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="files-rename-music-metadata" lang="zh-CN">

  <info>
    <link type="guide" xref="files#common-file-tasks"/>

    <revision version="gnome:47" date="2024-08-31" status="candidate"/>

    <credit type="author">
      <name>Michael Hill</name>
      <email>mdhillca@gmail.com</email>
    </credit>

    <license xmlns="http://projectmallard.org/1.0/" href="https://creativecommons.org/licenses/by-sa/3.0/">
  <p>This work is licensed under a <link href="https://creativecommons.org/licenses/by-sa/3.0/">Creative
  Commons Attribution-ShareAlike 3.0 Unported License</link>.</p>
</license>

    <desc>Rename music files using metadata they contain.</desc>
  <credit type="translator copyright"><name>TeliuTe</name><email>teliute@163.com</email><years>2011, 2012</years></credit><credit type="translator copyright"><name>tuberry</name><email>orzun@foxmail.com</email><years>2021</years></credit><credit type="translator copyright"><name>Victor_Trista</name><email>ljlzjzm@hotmail.com</email><years>2023</years></credit></info>

  <title>Rename music files using metadata</title>

  <p>You can add the embedded metadata from music files to their filenames.</p>

  <steps>
    <title>To add metadata to a filename:</title>
    <item><p>Select two or more music files in <app>Files</app>.</p></item>
    <item><p>Press <key>F2</key> or right-click on the selection and pick
    <gui>Rename</gui>. The <gui>Rename</gui> window opens with <gui>Rename
    using a template</gui> selected.</p>
      <note>
        <p>The name field contains "[Original filename]" as a placeholder. It
        can be deleted or added back from the <gui>+ Add</gui> menu.</p>
      </note>
    </item>
    <item><p>Click <gui>+ Add</gui> to show the menu of available metadata,
    like <gui>Album</gui> and <gui>Title</gui>. Select each item to place it
    into the filename template in the order you want.</p>
    <p>The preview list will show the current filenames on the left and the
    resulting filenames on the right.</p></item>
    <item><p>Click the <gui>Rename</gui> button to apply the pattern you have
    created, and the files will be renamed.</p></item>
  </steps>

  <note style="tip">
    <p>如果重命名错误，或不合适，您可以撤销重命名。要撤销操作，立即点击侧边中的菜单按钮，选择<gui>撤销重命名</gui>，或按 <keyseq><key>Ctrl</key><key>Z</key></keyseq>，即可恢复其之前的名称。</p>
  </note>

</page>
