1CLIPBROWSE(1) User Contributed Perl Documentation CLIPBROWSE(1)
2
3
4
6 clipbrowse - Load a URL from the clipboard into your browser.
7
9 # ...copy something # (You might want to do a `clipjoin` if the URL
10 text is messy) $ clipbrowse
11
12 Remember that many browsers will load things that don't look like
13 URL's... for example Firefox does a Google "I'm feeling lucky". This
14 means you can have any text in your clipboard and `clipbrowse`.
15
17 It saves a couple of seconds every time you run it. Firefox, for
18 example, automatically creates a new tab and loads the page when you
19 invoke it from the command line. Already we've saved a Ctrl+T and a
20 Shift+Insert. When you consider the parallelizing (that your browser
21 will be actively loading the page while you're Alt+Tabbing to it),
22 you've squeaked out a little more.
23
24 Maybe I'm just a freak, but I like shaving out wasted time like that.
25
27 It seems like Firefox (currently) isn't very smart about the X
28 selections. If your data is in the "buffer" or "primary" selection, it
29 will find it every time. But if it's in "clipboard" or "secondary", it
30 won't.
31
32 When I understand all of this better I might submit some kind of bug
33 report or patch to Firefox, but for now this script puts the love on me
34 just fine.
35
37 The environment variable $BROWSER will override the default launching
38 command. If you have a %s in the line, it will be replaced with the
39 url. if not, the url will be appended at the end.
40
41 The default is `firefox -remote "openURL(%s,new-tab)"`.
42
44 Ryan King <rking@sharpsaw.org> =head1 COPYRIGHT
45
46 Copyright (c) 2005. Ryan King. All rights reserved.
47
48 This program is free software; you can redistribute it and/or modify it
49 under the same terms as Perl itself.
50
51 See <http://www.perl.com/perl/misc/Artistic.html>
52
53
54
55perl v5.12.0 2005-10-20 CLIPBROWSE(1)