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

Have read_selected_without_altering_clipboard use context-specific pauses universally #609

Open
kendonB opened this issue Jun 26, 2019 · 2 comments
Assignees
Labels
Enhancement Enhancement of an existing feature Grammar Related to a grammar for an application or programming language.

Comments

@kendonB
Copy link
Collaborator

kendonB commented Jun 26, 2019

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?

@alexboche
Copy link
Contributor

alexboche commented Jun 27, 2019

@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:

and
copy_pause_time_dict = {"standard": "10", "texstudio": "70", "lyx": "60", "winword": "90"}

@LexiconCode LexiconCode added Enhancement Enhancement of an existing feature Grammar Related to a grammar for an application or programming language. labels Jun 27, 2019
@LexiconCode
Copy link
Member

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.

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 Grammar Related to a grammar for an application or programming language.
Projects
None yet
Development

No branches or pull requests

3 participants