CLIPBROWSE(1p)
π CLIPBROWSE π
okay so this is clipbrowse, a lil Perl script that lives in the 1p manual section (user-contributed Perl docs, iykyk) and it does exactly one thing and does it gorgeously: it takes whatever URL-ish text is sitting in your clipboard and yeets it straight into your browser. no cap.
β¨ NAME β¨
clipbrowse β Load a URL from the clipboard into your browser. that's it. that's the whole job. and she's perfect π
πΈ VERSION πΈ
version 0.32
π USAGE π
# ...copy something # (You might want to do a `clipjoin` if the URL text
is messy) $ clipbrowse
so like, you copy something first, then you just run clipbrowse. done. if your URL text is all messy and chaotic (we've all been there bestie), you might wanna pipe it through clipjoin first to clean it up π
and here's the tea: a lot of browsers will usefully load things that don't even look like URLs. like, Firefox straight up does a Google "I'm feeling lucky" with non-URLs. which means β bestie β you can have literally any text in your clipboard and still hit clipbrowse. iconic behavior honestly π
π MOTIVATION π
it saves you a couple of seconds every single time you run it. Chrome and Firefox, for example, automatically pop open a new tab and load the page when you invoke them from the command line. so right off the bat we've already saved a Ctrl+T and a Shift+Insert. and then when you factor in the parallelizing β like, your browser is already actively loading the page while you're Alt+Tabbing over to it β you've squeaked out a lil bit more. π₯
maybe I'm just a freak but I love shaving out wasted time like that. no notes. π
π¦ CONFIGURATION π¦
the environment variable $BROWSER will override the default launching command. if you've got a %s in the line, it gets replaced with the url. if not, the url just gets appended at the end. simple as π
the default is:
chromium-browser "%s"
(that's Debian's Google Chrome, for the record). and if you're still out here riding for Firefox, consider:
firefox -remote "openURL(%s,new-tab)"'
β¨
π AUTHOR π
Ryan King <rking@panoptic.com> =head1 COPYRIGHT
ngl bestie, that =head1 COPYRIGHT is literally sitting there in the middle of the AUTHOR section in the original. I'm not fixing it. I'm not touching it. it's part of the lore now. π
Copyright (c) 2010. Ryan King. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://www.perl.com/perl/misc/Artistic.html>
π SUPPORT π
πΈ Websites πΈ
the following websites have more information about this module, and may be of help to you. as always, in addition to those websites please use your favorite search engine to discover more resources. π«Ά
- MetaCPAN β A modern, open-source CPAN search engine, useful to view POD in HTML format. <https://metacpan.org/release/Clipboard>
- RT: CPAN's Bug Tracker β The RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN. <https://rt.cpan.org/Public/Dist/Display.html?Name=Clipboard>
- CPANTS β The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution. <http://cpants.cpanauthors.org/dist/Clipboard>
- CPAN Testers β The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions. <http://www.cpantesters.org/distro/C/Clipboard>
- CPAN Testers Matrix β The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms. <http://matrix.cpantesters.org/?dist=Clipboard>
- CPAN Testers Dependencies β The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution. <http://deps.cpantesters.org/?module=Clipboard>
π Bugs / Feature Requests π
please report any bugs or feature requests by email to "bug-clipboard at rt.cpan.org", or through the web interface at <https://rt.cpan.org/Public/Bug/Report.html?Queue=Clipboard>. You will be automatically notified of any progress on the request by the system. β¨
π§ Source Code π§
the code is open to the world, and available for you to hack on. Please feel free to browse it and play with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull from your repository :) π
<https://github.com/shlomif/Clipboard>
git clone git://github.com/shlomif/Clipboard.git
β AUTHOR β
Shlomi Fish <shlomif@cpan.org>
π BUGS π
please report any bugs or feature requests on the bugtracker website <https://github.com/shlomif/Clipboard/issues>
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. (fr fr, this makes everyone's life so much easier π«Ά)
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2025 by Ryan King <rking@panoptic.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
okay that's the whole page bestie!! this gem was brought to you by perl v5.40.0 and it's dated 2025-02-15, and it's filed under CLIPBROWSE(1p) in the user-contributed Perl docs π go forth and clipbrowse, you absolute icon πβ¨π¦
π¦ where this page comes from
- debian trixie: libclipboard-perl 0.32-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libclipboard-perl 0.32-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libclipboard-perl 0.32-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms