Text::Editor::Vip::Buffer::Plugins::Tags- Tagging functionality plugin for Vip::Buffer
use 'Text::Editor::Vip::Buffer'; my $buffer = new Text::Editor::Vip::Buffer() ; $buffer->LoadAndExpandWith('Text::Editor::Vip::Buffer::Plugins::Tags') ; $buffer->SetTagAtLine('debug', 10) ; ... $buffer->GotoNextTag('debug', 0) ;
Tagging functionality plugin for Vip::Buffer
$buffer->SetTagAtLine($class, $line) ;
Sets a tag of class '$class' (a string) at the passed line.
Multiple tags of different classes can be set at the same line. The tags are deleted is the line is deleted.
$buffer->ClearTagAtLine($class, $line) ;
$buffer->GotoNextTag($class, $start_line) ;
$buffer->GotoPreviousTag($class, $start_line) ;
$buffer->FlipTagAtLine($class, $line) ;
Sets a tag at the given line if not already set; in that case the tag is removed.
$buffer->AddNamedTag($class, $line, $name) ;
Multiple named tags, with different classes, can be set at the same line. The same named tag can be set at multiple line.
$buffer->GetNamedTags($class) ;
Returns a list of array references containing:
the tag name
the tag's line
$buffer->GotoNamedTag($class, $name) ;
Sets the modification line at the tags location.
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.