Improve VSCode draft editor robustness
pokey opened this issue · comments
Pokey Rule commented
Users can lose drafts if window switch is too slow. To address this issue, we propose the following:
- Increase sleep timeout in https://github.com/knausj85/knausj_talon/blob/0d4ad8523b87c2fe10457b7fae7f2ba2f22ad735/draft_editor/draft_editor.py#L112
- Keep last draft in memory, and have "draft submit" when outside of VSCode just submit the most recent draft. That way if initial draft submit doesn't work, user can just say "draft submit" again
- While we're here, add "draft top", which selects from cursor to start of document
Pokey Rule commented
Do we want this sleep to be configurable while we're here? Does also beg the question whether we wanna start adding more configurable sleeps
Pokey Rule commented
@AndreasArvidsson mind dropping a link to your fix to jumpstart the impl here? IIRC you made this fix on your talon files already