dashy
                                
                                
                                
                                    dashy copied to clipboard
                            
                            
                            
                        [QUESTION] How to import config file?
Question
I've exported a config file via Update Configuration > Download as File. That gives me a yaml file in the following format (snippet copied from VSCode):

However, I can't see how to import this back into Dashy. Update Configuration > Edit Config uses the Tree or Code formats, neither of which are consistent with the format of the exported yaml file: Tree uses collapsible sections, and Code uses " and {} symbols that are stipped out of the export - so I can't simply paste the exported code straight back in.
I'm probably missing something basic, so would be very grateful for any assistance.
Category
Configuration
Please tick the boxes
- [X] You are using a supported version of Dashy (check the first two digits of the version number)
 - [X] You've checked that this question hasn't already been raised
 - [X] You've checked the docs and troubleshooting guide
 - [X] You agree to the code of conduct
 
If you're enjoying Dashy, consider dropping us a ⭐
🤖 I'm a bot, and this message was automated
Heya @Larvotto
You can use something like YAML to JSON, then in the config editor, select Code mode, and paste the contents in.
JSON and YAML have exactly the same structure, just YAML uses indentation instead of curly braces, commas and quotes. The mismatch is a bit inconsistent, I agree. But it's because yaml = nicer for humans, json = nicer for computers :)
Excellent, thanks. I knew it would be something basic!
BTW, the exported config - either to clipboard or a file - includes a rogue space at the very beginning, i.e., before "appConfig", which causes an error if not removed. No biggie to fix, but thought you might want to know.
BTW#2 - Dashy is excellent! Thanks so much for all your hard work.
This issue has gone 6 weeks without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days.
Fix for that whitespace will be include in #799 :) ETA mid-August.
I've just had the same problem with the rogue space in the exported config file in v2.1.1
Error, unable to validate 'conf.yml' 
⚠️ Error on line 8, column 0: end of the stream or a document separator is expected
  6 |       path: https://github.com/ ...
  7 |     - title: Documentation
  8 |       path: https://dashy.to/docs
  9 | appConfig:
------^
 10 |   theme: nord-frost
 11 |   layout: auto
When I opened the file in VS Code, I found that the pageInfo section header was incorrectly indented by one space.
 pageInfo:
  title: Dashy
  description: Welcome to your new dashboard!
  navLinks:
    - title: GitHub
      path: https://github.com/Lissy93/dashy
    - title: Documentation
      path: https://dashy.to/docs
appConfig:
                                    
                                    
                                    
                                
Are you serious? You have the option to download a backup file of the configuration, but no way to import it? are you kidding me?
I tried importing the converted json. The file imports in, and I wait for the rebuild. However, the only thing that will change is the theme. None of the individual boxes import, and the default items are still there. This is after saving to disk (not locally). Any suggestions?