Skip to content

Copy translation to a register/clipboard #100

@venzen

Description

@venzen

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions