NAME

Text::Editor::Vip::Buffer::Plugins::Clipboard - Internal clipboard handling

SYNOPSIS

 use Text::Editor::Vip::Buffer ;
 $buffer = new Text::Editor::Vip::Buffer() ;
 
$buffer->LoadAndExpandWith('Text::Editor::Vip::Buffer::Plugins::Clipboard') ;

DESCRIPTION

Access Text::Editor::Vip::Buffer internal buffers.

Functions

SetClipboardContents

Sets the content of the named clipboard.

Arguments:

  • clipboard name, a scalar

  • text, a scalar, or an array ref (elements are joined to a single string)

$buffer->SetClipboardContents(4, 'something') ;
$buffer->SetClipboardContents(4, ['something', "\n", 'hi']) ;

GetClipboardContents

Returns the contents of the named clipboard.

Arguments:

  • clipboard name

$buffer->GetClipboardContents(4) ;

CopySelectionToClipboard

Makes a copy of the selected text and copies it to the named clipboard.

Arguments:

  • clipboard name

$buffer->CopySelectionToClipboard('some_clipboard_name') ;

InsertClipboardContents

Inserts the Contents of the named clipboard into the buffer.

Arguments:

  • clipboard name

$buffer->InsertClipboardContents('my_clipboard') ;

ClearClipboardContents

Arguments:

  • clipboard name

$buffer->ClearClipboardContents('clipboard_1') ;

AppendToClipboardContents

Adds the text argument to the end of the clipboard.

Arguments:

  • clipboard name, a scalar

  • text, a scalar, or an array ref (elements are joined to a single string)

$buffer->AppendToClipboardContents('clipboard_2', "some string and a newline\n") ;

PopClipboard

Removes the last entry of a clipboard and returnes it. An error is displayed if the clipboard is empty.

Arguments:

  • clipboard name, a scalar

$buffer->PopClipboard(4) ;

GetNumberOfClipboardElements

Returns the number of elements in the clipboard, zero if the clipboard doesn't exist.

Arguments:

  • clipboard name, a scalar

$buffer->GetNumberOfClipboardElements(4) ;

YankLineToClipboard

Removes a line from the buffer and adds it to a clipboard

Arguments:

  • line number

  • clipboard name, a scalar

$buffer->YankLineToClipboard(4, 'clipboard') ;

YankSelectionToClipboard

Removes the current selection from the buffer and adds it to a clipboard

Arguments:

  • clipboard name, a scalar

  • text, a scalar, or an array ref (elements are joined to a single string)

$buffer->YankSelectionToClipboard('clipboard') ;

AppendCurrentLineToClipboardContents

Adds the current line to a clipboars

Arguments:

  • clipboard name, a scalar

$buffer->AppendCurrentLineToClipboardContents(4) ;

AppendSelectionToClipboardContents

Adds the current selection to a clipboars

Arguments:

  • clipboard name, a scalar

$buffer->AppendSelectionToClipboardContents(4, 'clipboard') ;

AUTHOR

Khemir Nadim ibn Hamouda
CPAN ID: NKH
mailto:nadim@khemir.net
http:// no web site

COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.