If you manually moved your old note files into the ~/.config/codex/notes/ folder but Codex isn't showing them, don't panic, your data is safe. This happens because Codex uses an internal database/registry to keep track of notes. If you just drop a file into the folder, the app won't recognize it because it's not registered in the database.
To fix this, we can do a quick "file transplant" using the terminal. Here is the step-by-step workaround:
- Open the new version of Codex.
- Create a New Note (you can name it something like "Recovered Note").
- Close the app completely. This forces Codex to register the new note in its database.
- Open your terminal.
- Run the following command to find the newly created file (it will be at the top of the list and will have a random string name):
ls -lt ~/.config/codex/notes/ | head -n 5- Copy that random filename.
Now, we will overwrite the empty registered note with your old note data.
Run the cp (copy) command in your terminal like this:
cp /path/to/your/OLD_NOTE_FILE ~/.config/codex/notes/THE_NEW_RANDOM_NAME(Make sure to replace /path/to/your/OLD_NOTE_FILE with the actual path of your old file, and THE_NEW_RANDOM_NAME with the file name you found in Step 2).
Open Codex again. Click on the "Recovered Note" you created in Step 1, and you will see all your old content perfectly restored!
Note on Custom Styles: If you are upgrading to the new version containing the
CustomStyleextension, you don't need to worry about formatting crashes. The extension is built with backward compatibility (default: null), so it will automatically read and safely upgrade your old files without any errors.