commit 92ed4bd7ca83026714f03a090c05f39cc359b7f9
parent 5e7b8d0f2c162f70e1427dc59c91100999855b75
Author: Alex Balgavy <alex@balgavy.eu>
Date: Tue, 3 Dec 2024 22:13:22 +0100
linkhandler: add global option for quicksilver
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/scripts/linkhandler b/scripts/linkhandler
@@ -217,6 +217,13 @@ sub menu {
}
}];
+ push @$tableref, ['Quicksilver', sub {
+ my ($link) = @_;
+ detach sub {
+ system(qq(printf '%s' '$link' | qs));
+ }
+ }];
+
# Choose an option
my @options = map { $_->[0] } @$tableref;
my $choice = choose(\@options);