[Vimperator] how-to add copy function

Winter Faulk nox.freak at gmail.com
Thu May 24 14:33:45 PDT 2007


Sorry,

I didn't know there was a function. "copyToClipboard" I posted a kinda
bug where Ctrl+C would not work. I understand that this is not the vim
way so I was looking in the help but could not find any was of copying
selected text so I added the bit of code that I sent you but if this
is already in there then what is the key command to copy selected
text?

Thanks and sorry for duplicating functions,

-Winter

On 5/24/07, Martin Stubenschrott <stubenschrott at gmx.net> wrote:
> On Thu, May 24, 2007 at 01:35:07PM -0700, Winter Faulk wrote:
> > Hi,
> >
> > I posted a bug earlier about not being able to copy after you response I
> > did a little research into copying data into the clip board with FF
> > and added the fallowing code to the commands.js file and it works.
>
> <snip>
>
> Hi,
>
> thanks for looking into this, but I don't understand what exactly your
> code does.
>
> There is already this function:
>
> function copyToClipboard(str)
> {
>     var clipboardHelper = Components.classes["@mozilla.org/widget/clipboardhelper;1"]
>         .getService(Components.interfaces.nsIClipboardHelper);
>     clipboardHelper.copyString(str);
> }
>
> Why not use this, instead of your complicated clipthis() function?
>
> --
> Martin
>


-- 
Thank you,

[================]
 Winter Faulk
 nox.freak at gmail.com
[================]


More information about the Vimperator mailing list