# Request to keep current file active after refresh file view

**URL:** https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939
**Category:** General Discussion
**Created:** [November 1, 2022, 11:27am UTC](https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939 "2022-11-01T11:27:44Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![RACooper](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/90ced4/32.png) [@RACooper](https://community.mp3tag.de/u/RACooper)
#### Post date: [November 1, 2022, 11:27am UTC](https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939/1 "2022-11-01T11:27:44Z")

</div>

Because I'm usually working on my whole library at once in MP3tag (thousands of files) it would be nice if the current highlighted file were still highlighted (and shown in the current pane) after Refresh File View instead of the list reverting to start with the first file in the current sort sequence. I'm using MP3tag to add back tags that have been lost when a file is saved in Audacity. I know this is just a work-around for an Audacity bug, not an MP3tag bug, but MP3tag could make my task easier if the orginally-highlighted file was still highlghted after a refresh, so I didn't need to scroll through my long list of files.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [November 1, 2022, 11:33am UTC](https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939/2 "2022-11-01T11:33:33Z")

</div>

I am not quite sure why you need to refresh the file list ...  
Ctrl-T re-reads the tags.  
Also, missing fields could be filtered with  
 MISSING  
F3 toggles the filter.  
I would assume that either the list is then reduced to a handlable amount of files in which a particular file could easily be found or that it is not necesary to select one particular file all the time.

Please not also, that if you modify the data it could be that the previously selected file is not included in the re-read list.

---

<div class="post-metadata">

### Author: ![RACooper](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/90ced4/32.png) [@RACooper](https://community.mp3tag.de/u/RACooper)
#### Post date: [November 1, 2022, 1:04pm UTC](https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939/3 "2022-11-01T13:04:45Z")

</div>

I need to refresh the file list because when I have edited the file in Audacity I filed it with a new name (added -a to the filename) because I need to keep the new and old copy - the old copy has the tags I need to re-add to the new copy. Otherwise if I file the edited file with the same name in Audacity the tags are lost. I know the previously selected file might not be there any more, but if it is, I want to go straight to it to get the tags Audacity has lost.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [November 1, 2022, 1:19pm UTC](https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939/4 "2022-11-01T13:19:48Z")

</div>

> [@RACooper](#):
>
> I need to refresh the file list because when I have edited the file in Audacity

Isn't this a question of workflow - e.g. yu could select all the files that you want to treat even in MP3tag, then copy all of them to a new folder, edit files in Audacity, if this is mandatory (I am pretty sure there are other editors around that keep the tag data), then copy the tag from the still loaded old file and paste them to the new file ...  
You could even save work if you have the same order of files in the source and the target location, you could copy and paste all the tags from all the files in 1 go instead of doing that individually file by file.

I mention all this as I am not sure when your request will become a feature. So, all these steps and functions could serve as a workaround until then.  
And these steps are under your direct control and you don't have to wait until somebody else becomes active.

---

<div class="post-metadata">

### Author: ![RACooper](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/90ced4/32.png) [@RACooper](https://community.mp3tag.de/u/RACooper)
#### Post date: [November 1, 2022, 2:05pm UTC](https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939/5 "2022-11-01T14:05:41Z")

</div>

Copying all the files I want to change into new folders is more work than scrolling down a list after Refresh because they are not all in the same folder to start with so I would need to create muliple folders to avoid having to try to work out which folder each new file belongs in when I copy back. I wasn't aware I could copy a file to a new folder in MP3tag - can you tell me where is that function?  
Alternatively, perhaps you can point to one of the other music editors you know about which don't lose tag data (obviously they need to be free to use like Audacity and have similar functionality).  
Anyway, I thought it would be simple for MP3tag to remember the current file and keep it hightlighted in Refresh (it does this for other functions, e.g. Sort). I guess it must be more difficult than that.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [November 1, 2022, 2:17pm UTC](https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939/6 "2022-11-01T14:17:02Z")

</div>

> [@RACooper](#):
>
> I wasn't aware I could copy a file to a new folder in MP3tag

See Edit\>Copy ...  
This copies (initially) all the selected files to the selected folder - but if you use either Convert\>Tag-Filename to create a folder structure based on tags or the equivalent as an action, you will find a copy of the previous structure (if that was also based on tag data).  
Also, you could setup an action that copies the original path into a user-defined field and then, after you have copied the original data to the new file, you could move that file to the original location ...  
There are so many ways to get the final result that do not need a highlighted file.

Doesn't the Nero Wave editor remember tags?

In my workflow I first edit the audio part and make sure that is AOK and then I add tags.

If you edit one file at a time, you could copy the tag data in MP3tag, edit that very same file in Audacity without the need to create a copy, re-read in MP3tag and paste the tag data from the clipboard (provided on other application has used the clipboard).

As I said: it so much down to your workflow.

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [November 1, 2022, 2:28pm UTC](https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939/7 "2022-11-01T14:28:53Z")

</div>

> [@RACooper](#):
>
> I'm using MP3tag to add back tags that have been lost when a file is saved in Audacity.

Which file-format are we talking about? WAVE?

---

<div class="post-metadata">

### Author: ![RACooper](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/90ced4/32.png) [@RACooper](https://community.mp3tag.de/u/RACooper)
#### Post date: [November 2, 2022, 12:15pm UTC](https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939/8 "2022-11-02T12:15:05Z")

</div>

filetype is MP3 - Audacity loses album art (cover type in MP3 = front cover or artist), and blanks Discnumber and Album Artist but retains all other fields such as Project and Contributing Artists

---

<div class="post-metadata">

### Author: ![RACooper](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/90ced4/32.png) [@RACooper](https://community.mp3tag.de/u/RACooper)
#### Post date: [November 2, 2022, 12:23pm UTC](https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939/9 "2022-11-02T12:23:31Z")

</div>

Yes, as I am generally only editing the waveform shape in Audacity then copying the tag data is probably the best solution, although in an ideal world I still think MP3tag should respect the "current file is displayed after an action".  
Thanks also for the idea of using Convert\>Tag-Filename to move a file to a new directory - I hadn't realised MP3tag would do this, although it now seems obvious. This will enable me to arrange songs by genre.  
Thanks again, problem solved.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [November 2, 2022, 12:26pm UTC](https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939/10 "2022-11-02T12:26:39Z")

</div>

> [@RACooper](#):
>
> but retains all other fields such as Project and Contributing Artists

This looks to me like your Audacity only write ID3V1 tags - I think there are settings in Audacity that manage this behaviour.  
[https://wikieducator.org/Using\_Audacity/Editing\_ID3\_Tags](https://wikieducator.org/Using_Audacity/Editing_ID3_Tags)

---

<div class="post-metadata">

### Author: ![RACooper](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/90ced4/32.png) [@RACooper](https://community.mp3tag.de/u/RACooper)
#### Post date: [November 3, 2022, 5:50pm UTC](https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939/11 "2022-11-03T17:50:44Z")

</div>

After saving with Audacity, MP3tag reports the tag as ID3v2.3 (ID3v2.3). After adding the cover art back, MP3tag reports the tag data as ID3v2.3 (ID3v1 ID3v2.3 APEv2). I've been using Audacity 3.0.2 but I just tried 3.2.1 which has the same problem.

I note that [Metadata Tags Editor - Audacity Manual](https://manual.audacityteam.org/man/metadata_editor.html) says "For both MP3 and MP2, only ID3v2.3 tags are exported. ID3v1 can be exported using [Cmd-line export]" so I think it's just an Audacity bug that it drops the cover art and other tag fields.

Incidentally, the wikieducator page you refer to says says to use _File_ --\> _Open Metadata Editor_ but the File menu on Audacity 3.0.2 and 3.2.1 doesn't have File\>Open Metadata Editor, only File\>New, Open, Recent Files, Close, Save Project, Export, Import, Page Setup, Print Exit. Do you think maybe the wikieducator page could be out of date or wrong? There is an Edit\>Metadata function but it doesn't allow the user to change the tag verson.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [November 3, 2022, 5:55pm UTC](https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939/12 "2022-11-03T17:55:27Z")

</div>

> [@RACooper](#):
>
> ID3v2.3 (ID3v1 ID3v2.3 APEv2).

Could you check whether the missing data is still in the APE tags?  
Go to File\>Options\>Tags\>Mpeg and set APE also to read.  
then re-read such a file and see if some more data shows up.  
Or the other way round (although then APE should be shown as first tag version) switch off the reading of APE tags and see whether that helps.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [November 3, 2022, 6:09pm UTC](https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939/13 "2022-11-03T18:09:24Z")

</div>

> [@RACooper](#):
>
> Incidentally, the wikieducator page you refer to says

After [downloading](https://www.audacityteam.org/download/windows/) the newest portable version, I understand the function like this:  
You edit a WAV in Audacity and you add the metadata in [Audacity Metadata Editor](https://manual.audacityteam.org/man/metadata_editor.html) you can export your WAV into another format like MP3.  
If you choose FILE -\> Export -\> Mp3 you will be asked, if you want to save the metadata in such a format.

Example for added Metadata in Audacity:

 ![image](https://community.mp3tag.de/uploads/default/original/2X/1/1140017b3e303c5af8293afa9abcabc445c655cd.png)

After an export into MP3 and loading this mp3 into Mp3tag, the Metadata looks like this:  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/1/1cbbc770e709f0fa0901ff5ac8a84704158ba2b3.png)

I have no idea, why the COMMENT and YEAR tag will be doubled by such an export.

Thats how the 2 x COMM and TYER and TDRC looks like:

 ![image](https://community.mp3tag.de/uploads/default/original/2X/1/15298cd255d161d01e018b0a60a53210806ca50f.png)

---

<div class="post-metadata">

### Author: ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)
#### Post date: [November 3, 2022, 6:13pm UTC](https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939/14 "2022-11-03T18:13:23Z")

</div>

> [@LyricsLover](#):
>
> I have no idea, why the COMMENT and YEAR tag will be doubled by such an export.

This has been a common Audacity reported issue that we have seen here previously. I have had this happen myself and cannot confirm why, when only one date has been written in Audacity.

> [@Another Audacity related question: Double "YEAR" Tag](https://community.mp3tag.de/t/another-audacity-related-question-double-year-tag/53612):
>
> I know, this is slightly off topic, because it's Audacity related, but since we have so many smart people here, I would like to ask it anyway: I'm usin Audacity to digitize vinyl and radio sources. I mark the tracks, add the metadata [artist name], [album title] [year] and [genre] and then I use "export multiple" to write the mp3 files. Everything works like a charm. When I open the file im MP3Tag, it has an additional YEAR tag: [Bild 2 - 2021-06-24--12-06] No MP3 Software will display this…

---

<div class="post-metadata">

### Author: ![RACooper](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/90ced4/32.png) [@RACooper](https://community.mp3tag.de/u/RACooper)
#### Post date: [November 3, 2022, 6:13pm UTC](https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939/15 "2022-11-03T18:13:30Z")

</div>

interesting but I'm not editing WAV files LyricsLover

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [November 3, 2022, 6:15pm UTC](https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939/16 "2022-11-03T18:15:07Z")

</div>

> [@MotleyG](#):
>
> I have had this happen myself and cannot confirm why, when only one date has been written in Audacity.

It looks like Audacity writes the same Year "2022" once as TYER and once as TDRC.

---

<div class="post-metadata">

### Author: ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)
#### Post date: [November 3, 2022, 6:15pm UTC](https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939/17 "2022-11-03T18:15:13Z")

</div>

It doesn't matter what format this starts in, as Audacity converts to work in PCM AFAIK.

---

<div class="post-metadata">

### Author: ![RACooper](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/90ced4/32.png) [@RACooper](https://community.mp3tag.de/u/RACooper)
#### Post date: [November 3, 2022, 6:17pm UTC](https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939/18 "2022-11-03T18:17:31Z")

</div>

Options\>Tags\>Mpeg APE was off. setting it on and re-reading, only the file edited with Audacity showed any tag fields at all. Setting APE off again restored the tag fields in the non-Audacity files and the Audacity-edited files were still wrong. I still think Audacity is dropping the data. I have a work-around and it's not MP3tag that's broken, so let's forget it.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [November 3, 2022, 6:27pm UTC](https://community.mp3tag.de/t/request-to-keep-current-file-active-after-refresh-file-view/58939/19 "2022-11-03T18:27:53Z")

</div>

> [@MotleyG](#):
>
> This has been a common Audacity reported issue that we have seen here previously.

You are right, Audacity itselfs know this issues:

> <https://github.com/audacity/audacity/issues/1620>
>
> \*\*Describe the bug\*\*
> Audacity writes double Year and Comment metadata. This do…es not show in Audacity - but does in other apps (MP3Tag and other player apps)
> 
> \*\*To Reproduce\*\*
> Steps to reproduce the behavior:
> 1. purge Audacity settings folder (ensures cleared matadata)
> 2. launch Audacity
> 3. Edit\>Metadata
> 4. Observe: empty metadata fields
> 5. record a short piece of audio
> 6. File\>Export\>Export as MP3
> 7. fill in the metadata fields (see example below)
> 8. press OK to make the export
> 9. exit Audacity
> 10. relaunch Audacity
> 11. Edit metadata
> 12. Observe: metadata fields are empty (expected behavior)
> 13. Import the MP3 fole from stes 6-8
> 14. Edit\>Metadata
> 15. Observe: metadata is same as at Step 7 - correct single entries (see image below)
> 16. File\>Export\>Export as MP3 (to a modified filename)
> 17. Observe: on Export the metatdata is the same as at steps 7 and 15
> 18. Launch Mp3tag
> 19. Examine the two MP3 files
> 20. Observe: both the year filed and the comment fieldd entries are doubled-up, separated with a double backslash, for both MP3 files (see image below)
> 
> \*\*Expected behavior\*\*
> Metadata to be handled correctly and consistently.
> 
> \*\*Screenshots\*\*
> Step 7 - metadata entered in Audacity
> !\[image\](https://user-images.githubusercontent.com/50205984/132121088-9df9e0fd-1a36-49eb-8ec1-712f8933d9bf.png)
> 
> 
> Step 15 - metadata drom imported MP3
> !\[image\](https://user-images.githubusercontent.com/50205984/132121264-595e8581-bfec-40c7-b8f1-13ad2a2a34ad.png)
> 
> 
> Step 20 - MP3tag shows double-year and double-comment
> !\[image\](https://user-images.githubusercontent.com/50205984/132121512-130bee44-6d01-408b-b8ef-8f09aa66f4e2.png)
> 
> 
> \*\*Additional information (please complete the following information):\*\*
> - OS: Windows 10 - but assume all platforms
> - Version Audacity 3.0.4 and latest alpha 3.1.0
> 
> \*\*Additional context\*\*
> a) This was originally logged on GitHub by user cubetroniv in December 2019:
> year tag gets doubled #401 
> 
> b) It was logged on Bugzilla (which had primacy for bug tracking at the time as P3 bug 2291
> Bug 2291 - Metadata: Exported MP3 shows double year in MP3tag metadata
> https://bugzilla.audacityteam.org/show\_bug.cgi?id=2291
> 
> c) Both these logs were closed because at the time I could not reproduce this
> 
> d) The isue resurfaced on the Forum:
> https://forum.audacityteam.org/viewtopic.php?f=47&t=116661#p434345
> 
> e) This led me to retest - and this time I could find a way to reproduce the users' complaints - so I logged this fresh bug to replace the prvious two logs

There are at least two more issues: [1696](https://github.com/audacity/audacity/issues/1696) and [1464](https://github.com/audacity/audacity/issues/1464)

You can find the problem for the doubled YEAR here in [the export source code](https://github.com/audacity/audacity/blob/2220e5a5a4f8f02676752c13fb8eda0315992e3a/src/export/ExportMP3.cpp#L2160):

```auto
      else if (n.CmpNoCase(TAG_YEAR) == 0) {
         // LLL: Some apps do not like the newer frame ID (ID3_FRAME_YEAR),
         // so we add old one as well.
         AddFrame(tp.get(), n, v, "TYER");
         name = ID3_FRAME_YEAR;
      }

```

After [Line 2217](https://github.com/audacity/audacity/blob/2220e5a5a4f8f02676752c13fb8eda0315992e3a/src/export/ExportMP3.cpp#L2217) you also find the reason, why the COMM will be doubled, caused by a "ugly iTunes hack":
