Mstdn icon indicating copy to clipboard operation
Mstdn copied to clipboard

Config management

Open rhysd opened this issue 7 years ago • 4 comments

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

rhysd avatar Apr 20 '17 09:04 rhysd

+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...

rmdes avatar Apr 22 '17 14:04 rmdes

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.

rocandante avatar Apr 23 '17 08:04 rocandante

@rikmendes @rocandante

Thank you for comments! Yes, you're right. I think I should describe how to add accounts to usage section.

rhysd avatar Apr 23 '17 08:04 rhysd

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" } ],

rmdes avatar Apr 27 '17 14:04 rmdes