URLVIEW(1) | General Commands Manual | URLVIEW(1) |
urlview
— extract
URLs, launch associated program
urlview |
[- line]
[file]… |
Scans each file (standard input stream if "-", the default) for URLs, then shows them in a curses(3) menu. (If the standard output stream is not a teletype: writes them, one per line, thereto.)
The menu allows viewing, searching, editing, and opening the URLs
in the appropriate program.
URLs are shown in order, but multiple instances of the same URL are
deduplicated case-insensitively!
If -
line is given,
where line is a decimal integer, then the first URL at
or following that line is selected automatically, instead of the first.
BROWSER
.Full mutt(1)-style line editing is supported (incl. ^I (Tab) to erase to end of line). During entry, ^G cancels.
BROWSER
URLVIEW_DEBUG
The first extant of ~/.urlview, /etc/urlview/system.urlview is read. In this case, the defaults may be overridden through a simple line-based "setting whitespace value" format. Empty lines and lines starting with ‘#’es are ignored.
REGEXP
ere((http|https|ftp|gopher|gemini|mailto):(//)?[^ <>"\t]*|(www|ftp)[0-9]?\.[-a-z0-9.]+)[^ .,;\t\n\r<">\):]?[^, <>"\t]*[^ .,;\t\n\r<">\):]
COMMAND
progVIA
, when an URL is opened.
BROWSER
. Defaults to
"/etc/urlview/url_handler.sh
".VIA
argumentVIA
environmentURL
environment variable to the URL, then
run prog verbatim.VIA
pipeBROWSER
BROWSER
even if
COMMAND is set.EXPERT
'
s in COMMAND: the
URL to be opened is substituted as a quoted word using
'
. If prog is, for example
"w3m
'%s'
-N
", this would defeat this quoting, and
run the URL as
code. If you're sure your progs don't quote
the URL — for example "lynx
%s
-cookie_file
='/tmp/lynx
cookies'
" — it's safe to enable
EXPERT.
EDIT
no|yesWRAP
no|yesMOUSE
yes|noyes, no, argument, environment, and pipe are case-insensitive.
1 if no URLs were found, the effective
COMMAND contained a '
and
EXPERT wasn't enabled with
VIA=argument.
WRAP/EDIT/MOUSE/VIA
received an invalid value, ere isn't a valid ERE, an
unknown setting was specified, or a
file couldn't be opened.
December 11, 2023 | urlview-ng 1c-1 |