Caster
Caster copied to clipboard
Have read_selected_without_altering_clipboard use context-specific pauses universally
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 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
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.