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

Copy translation to a register/clipboard #100

Open
venzen opened this issue Aug 11, 2022 · 0 comments
Open

Copy translation to a register/clipboard #100

venzen opened this issue Aug 11, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@venzen
Copy link

venzen commented Aug 11, 2022

I'm trying to get the output of :Translate into the clipboard, like this:

:redir @* | Translate | redir END

The content of the clipboard is not what I expect:

| redir end ==> | <translated_word> 
7 more lines
7 more lines

Could anyone suggest a better method?

Also, it would be useful to a have a command TranslateC that automatically adds the full translated text to a register (or system clipboard). Perhaps the Python module xclip could easily do this?

@voldikss voldikss added the enhancement New feature or request label Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants