diff options
-rwxr-xr-x | bin/find-urls | 8 | ||||
-rw-r--r-- | tmux.conf | 2 |
2 files changed, 1 insertions, 9 deletions
diff --git a/bin/find-urls b/bin/find-urls deleted file mode 100755 index e41363a..0000000 --- a/bin/find-urls +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env perl -use strict; -use warnings; -use 5.014; - -use URL::Search 'extract_urls'; - -say for extract_urls(do { local $/; <> }); @@ -36,7 +36,7 @@ bind ^N new-window bind ^D detach-client bind ^[ copy-mode bind { copy-mode -bind Enter run 'tmux capture-pane -p | find-urls | tail -n1 | xargs xdg-open' +bind Enter run 'tmux capture-pane -p | perl -MURL::Search -E"say for URL::Search::extract_urls(do { local \$/; <> })" | tail -n1 | xargs xdg-open' unbind ^B |