NAME
BBS::Perm::Plugin::URI - render quickly URI submittal for BBS::Perm
SYNOPSIS
use BBS::Perm::Plugin::URI;
my $uri = BBS::Perm::Plugin::URI->new( browser => 'firefox -new-tab');
$uri->push( 'http://cpan.org' );
$uri->pop;
$uri->clear;
DESCRIPTION
BBS::Perm::Plugin::URI is a plugin of BBS::Perm for quickly submitting URI If current text has some URI such as http://www.cpan.org, you can use your browser to visit it, just hit Alt+Numer, where Number is the position of the URI appears. If it's the first URI on our screen, the Number is 1. If it's the 5th URI, the Number is 5. And so on, till 9. Alt+0 will visit your default URI. If there's no the Nth URI when you submit Alt+N, you'll visit the last URI.
Yeah, I know, it's not elegant, but in BBS world, URI is rare, so it's not a critical problem, IMHO, ;-)
To make this work, you have to enable BBS::Perm's accel option.
INTERFACE
- new( browser => $browser )
-
create a new BBS::Perm::Plugin::URI object
$browser is your command to visit the URI, which will be provideed as the argument.
- push($uri)
-
push $uri to our object.
- pop
-
pop one URI from our object.
- uri
-
get a arrayref referred to a list of URIs in our object.
- size
-
get the number of URIs in our object.
- clear
-
clear URIs in our object.
AUTHOR
sunnavy <sunnavy@gmail.com>
LICENCE AND COPYRIGHT
Copyright (c) 2007-2011, sunnavy <sunnavy@gmail.com>
.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.