BBS::Perm::Plugin::URI - render quickly URI submittal for BBS::Perm
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;
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.
- 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 to our object.
pop one URI from our object.
get a arrayref referred to a list of URIs in our object.
get the number of URIs in our object.
clear URIs in our object.
Copyright (c) 2007-2011, sunnavy
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.