Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

Export, import and load settings from a file

Open dannythevii opened this issue 6 months ago • 5 comments

Good morning, I'll start by saying that I've never seen such a well-made program. I have a small suggestion: the ability to export personal settings to a .reg file so that when you change PCs you can restore your custom configurations. Many thanks and congratulations.

dannythevii avatar May 06 '26 09:05 dannythevii

Folding #814 in here — same request from another reporter, with two details worth keeping:

  • load settings from a file at a known path (~/.config/Markpad/config.json was the suggestion) or a path you choose, not only export/import through the UI
  • the request came from macOS, so whatever this ends up being should not be Windows-registry shaped

PathGao avatar Sep 22 '26 05:09 PathGao

@dannythevii @felhasznalonev Are you both still using Markpad, and would you still use this? If so I'd like to take it on, starting with export and import of settings as a JSON file, so it works the same on Windows, macOS and Linux.

PathGao avatar Sep 29 '26 15:09 PathGao

+1 on .config/Markpad/config.json then it could be put under control of tools like yadm or chezmoi

ecatphi8 avatar Sep 29 '26 17:09 ecatphi8

This is merged in #916 and ships in 2.8.2. Settings > Files > Import… / Export… saves every setting, plus your installed VS Code themes, to a JSON file and loads it back on another machine.

@dannythevii @AbdallahSulaimanBaffa this is what you asked for. It is a plain file, not a .reg, so it works the same on Windows, macOS and Linux.

@felhasznalonev @ecatphi8 Markpad won't read settings from a fixed path like ~/.config/Markpad/config.json at startup. That would mean two places holding your settings and a rule for which one wins. What you want is the same thing though: settings in a file you control. Export it wherever you like, including a folder managed by chezmoi or yadm, and import it on a new machine. The file is readable, hand-editable JSON, and any key you leave out keeps its current value. One difference from a live config file: changes made later in the app are not written back to it, so export again after changing things.

PathGao avatar Sep 29 '26 18:09 PathGao

@dannythevii @felhasznalonev Are you both still using Markpad, and would you still use this? If so I'd like to take it on, starting with export and import of settings as a JSON file, so it works the same on Windows, macOS and Linux.

I would still use (as supplementary app of Obsidian). But your question will become more interesting when Obsidian v1.14.2 Desktop-public is released (current Desktop-public release is only v1.13.7, but Desktop-catalyst is already v1.14.2), - will become more interesting because starting from v1.14.2 files can be opened outside vault as well (Obsidian 1.14.2 lets you open files outside your vault).

felhasznalonev avatar Sep 30 '26 03:09 felhasznalonev