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

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

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

Sets the content of the named clipboard.
Arguments:
$buffer->SetClipboardContents(4, 'something') ; $buffer->SetClipboardContents(4, ['something', "\n", 'hi']) ;
Returns the contents of the named clipboard.
Arguments:
$buffer->GetClipboardContents(4) ;
Makes a copy of the selected text and copies it to the named clipboard.
Arguments:
$buffer->CopySelectionToClipboard('some_clipboard_name') ;
Inserts the Contents of the named clipboard into the buffer.
Arguments:
$buffer->InsertClipboardContents('my_clipboard') ;
Arguments:
$buffer->ClearClipboardContents('clipboard_1') ;
Adds the text argument to the end of the clipboard.
Arguments:
$buffer->AppendToClipboardContents('clipboard_2', "some string and a newline\n") ;
Removes the last entry of a clipboard and returnes it. An error is displayed if the clipboard is empty.
Arguments:
$buffer->PopClipboard(4) ;
Returns the number of elements in the clipboard, zero if the clipboard doesn't exist.
Arguments:
$buffer->GetNumberOfClipboardElements(4) ;
Removes a line from the buffer and adds it to a clipboard
Arguments:
$buffer->YankLineToClipboard(4, 'clipboard') ;
Removes the current selection from the buffer and adds it to a clipboard
Arguments:
$buffer->YankSelectionToClipboard('clipboard') ;
Adds the current line to a clipboars
Arguments:
$buffer->AppendCurrentLineToClipboardContents(4) ;
Adds the current selection to a clipboars
Arguments:
$buffer->AppendSelectionToClipboardContents(4, 'clipboard') ;

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

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.