File: openurl.pl.diff

package info (click to toggle)
irssi-scripts 20160301
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,624 kB
  • ctags: 2,564
  • sloc: perl: 61,025; sh: 184; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 769 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Changed hardcoded w3m to sensible-browser in openurl.pl, but ncftp and  mutt remain
Forwarded: no
Author: Florian Ernst <florian_ernst@gmx.net>
Last-Update: 2004-02-29
--- a/scripts/openurl.pl
+++ b/scripts/openurl.pl
@@ -26,7 +26,7 @@
 $recent = 1;
 
 # RegExp & defaultcommands
-%urltypes = ( http => { regexp => qr#((?:https?://[^\s<>"]+|www\.[-a-z0-9.]+)[^\s.,;<">\):])#, cmd => 'w3m "$1"' },
+%urltypes = ( http => { regexp => qr#((?:https?://[^\s<>"]+|www\.[-a-z0-9.]+)[^\s.,;<">\):])#, cmd => 'sensible-browser "$1"' },
               ftp  => { regexp => qr#((?:ftp://[^\s<>"]+|ftp\.[-a-z0-9.]+)[^\s.,;<">\):])#, cmd => 'ncftp "$1"' },
 	      mail => { regexp => qr#([-_a-z0-9.]+\@[-a-z0-9.]+\.[-a-z0-9.]+)#, cmd => 'mutt "$1" -s "$2"' },
 	    );