Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > dcb57bc1f616cf3a8072df2efbbf2767 > files > 68

elinks-0.12-18.mga7.i586.rpm

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Chapter 7. URL Shortcuts in ELinks</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"><link rel="home" href="index.html" title="The ELinks Manual"><link rel="up" href="index.html" title="The ELinks Manual"><link rel="prev" href="ch06s03.html" title="Marks lifespan"><link rel="next" href="ch07s02.html" title="How it works"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 7. URL Shortcuts in ELinks</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch06s03.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch07s02.html">Next</a></td></tr></table><hr></div><div class="chapter" title="Chapter 7. URL Shortcuts in ELinks"><div class="titlepage"><div><div><h2 class="title"><a name="idp6608016"></a>Chapter 7. URL Shortcuts in ELinks</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="ch07.html#idp6609824">What it does</a></span></dt><dt><span class="section"><a href="ch07s02.html">How it works</a></span></dt><dt><span class="section"><a href="ch07s03.html">Alternative URI rewriting mechanisms</a></span></dt></dl></div><p>One extremely useful and convenient feature in ELinks, which may not be very
well known, is so-called URL rewriting.  If you give ELinks a URL (by passing it
on the command line, through the -remote magic device or, most frequently, by
typing it to the Goto URL dialog), it has the ability to mangle it in certain
ways before processing it.  This mangling is called URI rewriting.</p><div class="section" title="What it does"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idp6609824"></a>What it does</h2></div></div></div><p>The URI rewriting can expand certain URL shortcuts to complete URLs.  For
example, if you type <span class="emphasis"><em>sd</em></span> to the Goto URL dialog, it will be rewritten to:</p><pre class="literallayout">http://www.slashdot.org/</pre><p>first, and then loaded.  /.'s front page will be displayed.</p><p>Further, if you type <span class="emphasis"><em>g elinks</em></span> to the Goto URL dialog, it will be rewritten to:</p><pre class="literallayout">http://www.google.com/search?q=elinks&amp;amp;btnG=Google+Search</pre><p>and then loaded, therefore, a Google search for the keyword <span class="emphasis"><em>elinks</em></span> will be
performed.  Note that you can separate the <span class="emphasis"><em>g</em></span> by either a space or a colon, so
<span class="emphasis"><em>g:elinks</em></span> will do the exact same thing.</p><p>A large number of those shortcuts are already defined for you.  You can browse
Protocols :: URI Rewriting :: Dumb/Smart prefixes in the Options Manager for
a complete listing of already defined shortcuts (press the [Info] button on
a shortcut to see what it will be rewritten to).  See below for details on how
to enable or disable this rewriting and how to define your own shortcuts.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch06s03.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="ch07s02.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Marks lifespan </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> How it works</td></tr></table></div></body></html>