New feature: Draft
rhysd opened this issue · comments
Linda_pp commented
Twitter does not support saving draft of tweet as service since each Twitter client supports it.
I'm considering this app supports the feature:
- Add 'Draft' menu and 'Save as Draft' as its first menu item
- When clicking it, renderer checks input form and extract following information and send it to main
- text
in_reply_to
user ID (should beundefined
on normal tweet)
- Main process manages draft in JSON file at user data directory
- Draft items should be put per user
- Draft items are listed in 'Draft' menu as menu item after first item 'Save as Draft'
- When clicking it, main process will reopen the application window with proper
text=
andin_reply_to=
params - After content is opened correctly (I think it can be confirmed by online status), main will delete the draft item and the menu item
- When clicking it, main process will reopen the application window with proper
Alternative implementation is saving the data to local storage, but I'm considering that managing drafts in main would make things simpler.
Current limitation: Chain of tweets in tweet form is not preserved.
Linda_pp commented
This feature is now available thanks to Twitter's official "Unsent Tweet" feature.
- Click "Unsent Tweet" and choose a draft in the list. To cancel it, select "New Tweet" in "Edit" menu
- Select "Cancel Tweet" in "Edit" menu to save current text as draft. It shows a Discard/Save dialog. Click "Save" button