From: Sergey Matveev Date: Thu, 24 Feb 2022 16:15:44 +0000 (+0300) Subject: URL editing history actually is useful X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=8c6054970f74a37d73c1add8e768b9eb995c3a1b URL editing history actually is useful --- diff --git a/urlview/bin/urlview b/urlview/bin/urlview index 59aa515..9259818 100755 --- a/urlview/bin/urlview +++ b/urlview/bin/urlview @@ -3,4 +3,4 @@ cmd=www # regexp is taken from urlview grep -P -o '(((http|https|ftp|gopher)|mailto):(//)?[^ <>\"\t]*|(www|ftp)[0-9]?\\.[-a-z0-9.]+)[^ .,;\t\n\r<\">\\):]?[^, <>\"\t]*[^ .,;\t\n\r<\">\\):]' "$@" | fzf --bind="enter:execute($cmd {})" \ - --bind="ctrl-f:execute(rlwrap --history-filename /dev/null --pre-given={} head -1 | xargs $cmd)" + --bind="ctrl-f:execute(rlwrap --pre-given={} head -1 | xargs $cmd)"