Caster icon indicating copy to clipboard operation
Caster copied to clipboard

Have read_selected_without_altering_clipboard use context-specific pauses universally

Open kendonB opened this issue 5 years ago • 2 comments

In the text manipulation functions we have content-specific pauses for copying text. I'm finding that the use of "hug" in the texstudio context is unreliable. I think a good solution is to pull out those context-specific pauses from the text manipulation functions file and into the read_selected_without_altering_clipboard function itself. @alexboche do you see any reason why this wouldn't work?

kendonB avatar Jun 26 '19 22:06 kendonB

@kendonB I think that's a good idea.By the way, other commands besides "hug" and the text manipulation commands that use the function read_selected_without_altering_clipboard include "alias", "bring me", and I think "jump in". Relevant code is here: https://github.com/dictation-toolbox/Caster/blob/b5405cca715b61a83ea71a5e0bcdde5b194fb3ec/castervoice/rules/core/text_manipulation_rules/text_manipulation_support.py#L14 and https://github.com/dictation-toolbox/Caster/blob/b5405cca715b61a83ea71a5e0bcdde5b194fb3ec/castervoice/rules/core/text_manipulation_rules/text_manipulation_support.py#L61

alexboche avatar Jun 27 '19 00:06 alexboche

So could def read_selected_without_altering_clipboard(same_is_okay=False, pause_time="0") specifically pause_time be used for the solution?

If so it's already implemented.

LexiconCode avatar Aug 14 '19 18:08 LexiconCode