Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caster clipboard commands preserve system clipboard #261

Merged
merged 3 commits into from
Sep 20, 2018

Conversation

mrob95
Copy link
Member

@mrob95 mrob95 commented Sep 15, 2018

Previously, saying "duple" would copy the current line to the clipboard, make a new line and then paste. This works, but it replaces whatever is in the clipboard with the line you are duplicating, which can be annoying. This is fairly simply fixed by altering all commands which use the clipboard so that they save and restore the clipboard before and after operations.

Commands like "stoosh/spark five" and "duple" should now no longer replace the normal clipboard, provided what's in the clipboard is only a string. Now that this is done it should be fairly easy to implement the first part of #214.

I've been playing around to get the timings right so that it is completely reliable, but it would be worthwhile someone else testing it to make sure it's working properly.

@LexiconCode LexiconCode added Enhancement Enhancement of an existing feature Testing Required Requesting testers before merge labels Sep 15, 2018
@LexiconCode LexiconCode added this to the v6 milestone Sep 15, 2018
@LexiconCode LexiconCode changed the title Stoosh spark update – needs testing Caster clipboard commands preserve system clipboard Sep 15, 2018
@LexiconCode
Copy link
Member

LexiconCode commented Sep 20, 2018

@mrob95
Everything works as expected!

Format your code through yapf https://github.com/synkarius/caster/issues/197 and I'll get this merged.

@LexiconCode LexiconCode removed the Testing Required Requesting testers before merge label Sep 20, 2018
@LexiconCode LexiconCode self-requested a review September 20, 2018 02:08
@LexiconCode LexiconCode merged commit 3608f2d into dictation-toolbox:develop Sep 20, 2018
@mrob95 mrob95 deleted the stoosh_spark_update branch September 20, 2018 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Enhancement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants