commit e10046c8becf8d04a93ce2c455a0fb42687e782a
parent 2a37a1120ef2612101ea2f67c17b4c17fdababae
Author: Alex Balgavy <alexander.balgavy@spaceapplications.com>
Date: Sat, 14 Dec 2024 15:53:11 +0100
linkhandler: add w3m
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/scripts/linkhandler b/scripts/linkhandler
@@ -458,6 +458,10 @@ elsif (checkstr($LINK, 'includes', ['reddit.com'])) {
my $link = shift;
# Have to go via bash here to be able to pipe to `less`
launch_in_terminal(qq(bash -c 'reddio print -c always "comments/\$(printf "%s" '$link' | cut -d/ -f7)" | less -+F -+X'));
+ }],
+ ['w3m', sub {
+ my $link = shift;
+ launch_in_terminal(qq(w3m -config ~/.config/w3m/config -T text/html '$link'));
}]
);
my $selected_ref = menu(\@choices);