Mstdn
Mstdn copied to clipboard
Config management
Currently we need to write up configuration directly in JSON file. However, in some cases, it's hard.
- Some environment doesn't have good UTF-8 text editor by default (e.g. Notepad on Windows, 'start quote' feature with TextEdit.app on Mac)
- Some people don't know JSON format
- At first login, app needs to restart
So it's better to add config window rather than writing JSON file directly. I'll try json-editor to add UI with maintaining current JSON format.
https://github.com/jdorn/json-editor
Related issue: #3
+1 this would be really cool as for example for me my account array look like this :+1:
"accounts": [ { "name": "rmdes", "host": "mastodon.indie.host", "default_page": "/web/timelines/home" }, { "name": "rmdes", "host": "mastodon.brussels", "default_page": "/web/timelines/home" } ],
And i'm really not sure if this is correct or not, it doesnt seem to be since I don't see any dropdown with multi account anywhere...
For now, I think it would be good to indicate how to fill in the account data, for example, if the name requires the @ and if the host requires https: // or not. Just happened to me when I filled the host field with the prefix https: //, then when I started the app window was left blank.
@rikmendes @rocandante
Thank you for comments! Yes, you're right. I think I should describe how to add accounts to usage section.
I can confirm it works by doing it like this , just add a ',' after the first block copy it entirely, add new mastodon instance, make sure that block does not finish with a ','
done !
"accounts": [ { "name": "rmdes", "host": "mastodon.indie.host", "default_page": "/web/timelines/home" },
{ "name": "rmdes", "host": "mastodon.brussels", "default_page": "/web/timelines/home" } ],