1

Is there a shortcut/command to copy the title of a webpage in Vimperator?

1 Answer 1

5

I don't think there's a key for it built in.

Defining a yanktitle command

You can define the following command to do it:

:command! yanktitle :js util.copyToClipboard(buffer.title)

Or if you prefer, bind a key to the JS command, eg. xy

:nmap xy :js util.copyToClipboard(buffer.title)<CR>

A related command: copy link description

A related command is the extended hint command ;Y, which copies the description of a link

Pentadactyl versions.

:command! yanktitle js dactyl.clipboardWrite(buffer.title)
:map -b xy -js dactyl.clipboardWrite(buffer.title)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.