URLVIEW(1)
π URLVIEW(1) π
okay so bestie, welcome to urlview β the manual page, section 1, general commands π. What does it do? It extracts URLs and launches the associated program. That's it. That's the whole vibe. And honestly? Iconic. π
β¨ SYNOPSIS β¨
urlview [-line] [file]β¦
πΈ DESCRIPTION πΈ
So here's the tea β: urlview scans every file you hand it β or the standard input stream if you pass -, which is also the default β looking for URLs. Then it takes all those gorgeous little links and shows them to you in a curses(3) menu. (And if the standard output stream is not a teletype? Then it just writes them out, one per line, thereto. No menu, just vibes.)
That menu lets you view, search, edit, and open your URLs in the appropriate program. Love that for us π«Ά
URLs show up in order, obvi β but here's the slay: multiple instances of the same URL get deduplicated case-insensitively! So HTTPS://EXAMPLE.COM and https://example.com are not going to be double-chatting in there. Periodt. β¨
And if you pass -line, where line is a decimal integer, then the first URL at or following that line gets selected automatically, instead of the first one. Lowkey a time-saver.
π Bindings π
β,j,Scroll downβ Select next URL.β,k,Scroll upβ Select previous URL.eβ Edit selected URL, confirm withβ΅.β΅,β£β IfEDITisyes: rune. Then open selected URL withCOMMANDor$BROWSER.Mouse button 1β Select the URL under the cursor, thenβ΅.[0-9]β¦β Jump to numbered URL, confirm withβ΅. URLs are numbered from1.yβ Copy selected URL toXSELECTIONwithxclip(1)/xsel(1)/wl-copy(1).Mouse button 3β Select the URL under the cursor, theny.Home,=β Select first URL.End,*,Gβ Select last URL.Page Down,^Fβ Next page.Page Up,^Bβ Previous page./β Enter regex to search URLs forward by; confirm withβ΅.?β Enter regex to search URLs backward by; confirm withβ΅.nβ Search URLs forward with saved search (prompt if none).Nβ Search URLs backward with saved search (prompt if none).^L,^Gβ Redraw screen.q,x,hβ Exit.
Also!!! Full mutt(1)-style line editing is supported (incl. ^I (Tab) to erase to end of line π§). And during entry, ^G cancels. iykyk.
π¦ ENVIRONMENT π¦
BROWSERβ Overrides the built-in default forCOMMANDif not specified in βConfigurationβ,URLVIEW_DEBUGβ Behave as-if the standard output stream weren't a teletype.
π FILES π
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. π
π₯ Configuration π₯
REGEXP ereβ Use the specified case-insensitive extended regular expression to match URLs."\n","\r","\t", and"\f"are replaced with the new-line, the carriage return, the horizontal tab, and the form feed, respectively. The default is:
((http|https|ftp|gopher|gemini|mailto):(//)?[^ <>"\t]*|(www|ftp)[0-9]?\.[-a-z0-9.]+)[^ .,;\t\n\r<">\):]?[^, <>"\t]*[^ .,;\t\n\r<">\):]
COMMAND progβ Run shell program, subject toVIA, when an URL is opened. prog may contain multiple programs, delimited by β:βs; they are tried in order until one exits0. Shadows$BROWSER. Defaults to"/etc/urlview/url_handler.sh".VIA argumentβ Run prog, followed by a space and the quoted URL. If prog contains"%s", that is instead replaced with the quoted URL. This may leave the URL visible in to other users in/proc. This is the default.VIA environmentβ Set the URL environment variable to the URL, then run prog verbatim.VIA pipeβ Run prog verbatim with a line containing the URL piped via the standard input stream.
These two are only useful with VIA=argument:
BROWSERβ Unshadows$BROWSEReven ifCOMMANDis set.EXPERTβ Allows's inCOMMAND: 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 enableEXPERT.EDIT no|yesβ Edit the selected URL before opening it. The default isno.WRAP no|yesβ When at the last URL, allowβto go to the first, and vice versa. The default isno.MOUSE yes|noβ Enable mouse support. The default isyes.XSELECTION bufβ yank (copy) to buf. If$WAYLAND_DISPLAYis set, selects betweenwl-copy -pif"primary"andwl-copy(clipboard) if anything else. If$DISPLAYis set, given toxclip -selection buforxsel --bufdirectly (so the domain is likelyprimary|secondary|clipboard). The default isprimary.
<mint>yes</mint>,<mint>no</mint>,<mint>argument</mint>,<mint>environment</mint>, and<mint>pipe</mint>are case-insensitive. β¨`
β EXIT STATUS β
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. π
π SEE ALSO π
mutt(1), wl-copy(1), xclip(1), xsel(1), curses(3), regex(7), url(7)
okay that's the whole thing bestie, you're so welcome π this page came to you from urlview-ng 1e-1build1, dated January 29, 2026 β go forth and open some links ππ¦π
π¦ where this page comes from
- ubuntu resolute: urlview 1e-1build1 Β· 0BSD
- ubuntu stonking: urlview 1e-1build1 Β· 0BSD
- π the page's license: 0BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms