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:
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']) ;
Returns the contents of the named clipboard.
clipboard name
$buffer->GetClipboardContents(4) ;
Makes a copy of the selected text and copies it to the named clipboard.
$buffer->CopySelectionToClipboard('some_clipboard_name') ;
Inserts the Contents of the named clipboard into the buffer.
$buffer->InsertClipboardContents('my_clipboard') ;
$buffer->ClearClipboardContents('clipboard_1') ;
Adds the text argument to the end of the clipboard.
$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.
$buffer->PopClipboard(4) ;
Returns the number of elements in the clipboard, zero if the clipboard doesn't exist.
$buffer->GetNumberOfClipboardElements(4) ;
Removes a line from the buffer and adds it to a clipboard
line number
$buffer->YankLineToClipboard(4, 'clipboard') ;
Removes the current selection from the buffer and adds it to a clipboard
$buffer->YankSelectionToClipboard('clipboard') ;
Adds the current line to a clipboars
$buffer->AppendCurrentLineToClipboardContents(4) ;
Adds the current selection to a clipboars
$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.
To install Text::Editor::Vip, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Editor::Vip
CPAN shell
perl -MCPAN -e shell install Text::Editor::Vip
For more information on module installation, please visit the detailed CPAN module installation guide.