mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
address bar: :! command line doc
This commit is contained in:
parent
cd87cc793c
commit
db629abf0f
9 changed files with 83 additions and 76 deletions
|
@ -5,7 +5,18 @@
|
|||
<link>/en/_posts/</link>
|
||||
<description>Recent content in _posts on uweb browser</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<lastBuildDate>Fri, 25 Nov 2022 00:00:00 +0000</lastBuildDate><atom:link href="/en/_posts/index.xml" rel="self" type="application/rss+xml" />
|
||||
<lastBuildDate>Sun, 08 Jan 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/_posts/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>Address bar command line</title>
|
||||
<link>/en/acmd/</link>
|
||||
<pubDate>Sun, 08 Jan 2023 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>/en/acmd/</guid>
|
||||
<description>&quot;:!&quot; command line Pressing &quot;:&quot; or &quot;!&quot; with hardware keyboard sets focus on the address bar.
|
||||
The command line could be a &quot;.js&quot;, &quot;.sh&quot; or other executable with arguments. Ex. &quot;:!s g keyword&quot; could invoke &quot;s.js&quot; executable with the whole string as arguments (&quot;s.sh&quot; or &quot;s&quot; if file exists, here &quot;g&quot; as google search engine); &quot;:! g keyword&quot; would invoke the file &quot;.js&quot; or &quot;.sh&quot; as executable.
|
||||
For regular (non-js) executables, the standard output of the command line will be treated as lines of web urls.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Offline resources</title>
|
||||
<link>/en/offlinecache/</link>
|
||||
|
@ -48,18 +59,6 @@ Features The following mentioned subfolders locate in the configuration folder.
|
|||
The following html5 applications are allowed to read local files referred by &quot;https://local/sdcard/.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Address bar command modes</title>
|
||||
<link>/en/acmd/</link>
|
||||
<pubDate>Sat, 30 Jul 2022 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>/en/acmd/</guid>
|
||||
<description>Commands are the best for repeated execution of an instruction. Address bar command modes provide ways to run different commands in the same category easily.
|
||||
The configure file &quot;default.acmd&quot; has the exactly same format as default.cmds. Click the following links to install new modes (cold start the app to take effect, then long click the &quot;refresh&quot; button to switch modes):
|
||||
Shell command mode
|
||||
GNU bc (basic calculator) command mode (need termux for Android 10- )</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Configuration folders/files</title>
|
||||
<link>/en/filenames/</link>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<link rel="stylesheet" href="../style.css" type="text/css" />
|
||||
<title>Address bar command modes</title>
|
||||
<title>Address bar command line</title>
|
||||
<script type="text/javascript">
|
||||
function findLang(){
|
||||
let href = location.href;
|
||||
|
@ -36,14 +36,21 @@
|
|||
<br />
|
||||
|
||||
<div class="container">
|
||||
<h1 class="title">Address bar command modes
|
||||
<h1 class="title">Address bar command line
|
||||
<br>
|
||||
<span class="subtitle"></span>
|
||||
</h1>
|
||||
<ul class="tags">
|
||||
|
||||
</ul>
|
||||
<p><a href="../cmds/index.html">Commands</a> are the best for repeated execution of an instruction. Address bar command modes provide ways to run different commands in the same category easily.</p>
|
||||
<h3 id="-command-line">":!" command line</h3>
|
||||
<p>Pressing ":" or "!" with hardware keyboard sets focus on the address bar.<br>
|
||||
The command line could be a ".js", ".sh" or other executable with arguments. Ex. ":!s g keyword" could invoke "s.js" executable with the whole string as arguments ("s.sh" or "s" if file exists, here "g" as google search engine); ":! g keyword" would invoke the file ".js" or ".sh" as executable.</p>
|
||||
<p>For regular (non-js) executables, the standard output of the command line will be treated as lines of web urls.</p>
|
||||
<p><a href="i:0h.sh:../searchurl/txt/web.sh">Click to install the example file ".sh"</a><br>
|
||||
<a href="i:0hs.js:../searchurl/txt/web.js">Click to install the example file "s.js"</a></p>
|
||||
<h3 id="address-bar-command-modes">Address bar command modes</h3>
|
||||
<p><a href="../cmds/index.html">Commands</a> are the best for repeated execution of an instruction. Address bar command modes provide ways to run different commands in the same category easily.</p>
|
||||
<p>The configure file "default.acmd" has the exactly same format as <a href="../cmds/index.html">default.cmds</a>. Click the following links to install new modes (cold start the app to take effect, then long click the "refresh" button to switch modes):</p>
|
||||
<p><a href="i:0gdefault.acmd::shell:text/plain:%25s%0A">Shell command mode</a></p>
|
||||
<p><a href="i:0gdefault.acmd::bc:text/plain:echo '%25s'|bc -l -q%0A">GNU bc (basic calculator) command mode (need termux for Android 10- )</a></p>
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
<p><a href="https://releases.pagure.org/uweb/">pagure</a></p>
|
||||
<p><a href="https://sourceforge.net/projects/uwebbrowser/files/v1/">sourceforge</a></p>
|
||||
<h4 id="change-logs">Change logs</h4>
|
||||
<p>954: Address bar: ":!" for command line support (.js/.sh files as executables).<br>
|
||||
<p>954: Address bar: <a href="../links/index.html">":!"</a> for command line support (.js/.sh files as executables).<br>
|
||||
953: hardware keyboard: ":", "!" to set focus on address bar<br>
|
||||
949: Address bar: ":p [width in milliInch]x[height]" to generate PDF in custom size<br>
|
||||
946: Option "use offline cache" to support serverless local websites.</p>
|
||||
|
|
|
@ -84,6 +84,12 @@
|
|||
|
||||
|
||||
|
||||
<li class="post">
|
||||
<a href="acmd/index.html">
|
||||
<span>Address bar command line</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="post">
|
||||
<a href="offlinecache/index.html">
|
||||
<span>Offline resources</span>
|
||||
|
@ -102,12 +108,6 @@
|
|||
</a>
|
||||
</li>
|
||||
|
||||
<li class="post">
|
||||
<a href="acmd/index.html">
|
||||
<span>Address bar command modes</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="post">
|
||||
<a href="filenames/index.html">
|
||||
<span>Configuration folders/files</span>
|
||||
|
|
25
en/index.xml
25
en/index.xml
|
@ -5,7 +5,18 @@
|
|||
<link>/en/</link>
|
||||
<description>Recent content on uweb browser</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<lastBuildDate>Fri, 25 Nov 2022 00:00:00 +0000</lastBuildDate><atom:link href="/en/index.xml" rel="self" type="application/rss+xml" />
|
||||
<lastBuildDate>Sun, 08 Jan 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>Address bar command line</title>
|
||||
<link>/en/acmd/</link>
|
||||
<pubDate>Sun, 08 Jan 2023 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>/en/acmd/</guid>
|
||||
<description>&quot;:!&quot; command line Pressing &quot;:&quot; or &quot;!&quot; with hardware keyboard sets focus on the address bar.
|
||||
The command line could be a &quot;.js&quot;, &quot;.sh&quot; or other executable with arguments. Ex. &quot;:!s g keyword&quot; could invoke &quot;s.js&quot; executable with the whole string as arguments (&quot;s.sh&quot; or &quot;s&quot; if file exists, here &quot;g&quot; as google search engine); &quot;:! g keyword&quot; would invoke the file &quot;.js&quot; or &quot;.sh&quot; as executable.
|
||||
For regular (non-js) executables, the standard output of the command line will be treated as lines of web urls.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Offline resources</title>
|
||||
<link>/en/offlinecache/</link>
|
||||
|
@ -67,18 +78,6 @@ Change logs 954: Address bar: &quot;:!&quot; for command line support (.
|
|||
943: Multiple home screens support .</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Address bar command modes</title>
|
||||
<link>/en/acmd/</link>
|
||||
<pubDate>Sat, 30 Jul 2022 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>/en/acmd/</guid>
|
||||
<description>Commands are the best for repeated execution of an instruction. Address bar command modes provide ways to run different commands in the same category easily.
|
||||
The configure file &quot;default.acmd&quot; has the exactly same format as default.cmds. Click the following links to install new modes (cold start the app to take effect, then long click the &quot;refresh&quot; button to switch modes):
|
||||
Shell command mode
|
||||
GNU bc (basic calculator) command mode (need termux for Android 10- )</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Search engines</title>
|
||||
<link>/en/search/</link>
|
||||
|
|
|
@ -98,17 +98,19 @@ Socks proxy</p>
|
|||
</ul>
|
||||
<h4 id="commands">commands</h4>
|
||||
<ul>
|
||||
<li>:![command line]<br>
|
||||
The command line could be a ".js", ".sh" or other executable with arguments. Ex. ":!s youtube keyword" could invoke "s.js" executable with the whole string as arguments ("s.sh" or "s" if file exists); ":! youtube keyword" would invoke the file ".js" or ".sh" as executable.</li>
|
||||
</ul>
|
||||
<li>
|
||||
<p>:![command line]<br>
|
||||
The command line could be a ".js", ".sh" or other executable with arguments. Ex. ":!s g keyword" could invoke "s.js" executable with the whole string as arguments ("s.sh" or "s" if file exists, here "g" as google search engine); ":! g keyword" would invoke the file ".js" or ".sh" as executable.</p>
|
||||
<p>For regular (non-js) executables, the standard output of the command line will be treated as lines of web urls.</p>
|
||||
<p><a href="i:0h.sh:../searchurl/txt/web.sh">Click to install the example file ".sh"</a><br>
|
||||
<a href="i:0hs.js:../searchurl/txt/web.js">Click to install the example file "s.js"</a></p>
|
||||
<ul>
|
||||
<li>:p [width in milliInch]x[height] [top margin]:[right margin]:[bottom margin]:[left margin]<br>
|
||||
</li>
|
||||
<li>
|
||||
<p>:p [width in milliInch]x[height] [top margin]:[right margin]:[bottom margin]:[left margin]<br>
|
||||
Generate/Print PDF file in the "/sdcard/Download" folder, all units are milliinch.<br>
|
||||
Ex. ":p x" or ":px" for screen width and infinite height (as long vector screenshot).<br>
|
||||
":p x[height]" or ":px[height]" for screen width.</li>
|
||||
":p x[height]" or ":px[height]" for screen width.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<h3 id="i-internal-links">"i:" internal links:</h3>
|
||||
<ul>
|
||||
|
@ -119,22 +121,13 @@ Extract remote content (tar/tgz/zip) under the folder [path]. If [path] ends wit
|
|||
<li>
|
||||
<p>i:0m[bookmarklet index|prefix|?postfix|/.../localfile|c[cssFlag]]:[url]<br>
|
||||
Visiting url and execute the uweb browser internal bookmarklet that keeps valid for all urls under the path of [url].</p>
|
||||
</li>
|
||||
<li></li>
|
||||
</ul>
|
||||
<p>[bookmarklet index] must have two/three digits. The first two digits are used as index of bootmarklet. For example, "00" as the first local bookmarklet; "01" as the first remote script; then "02" as the second local bookmarklet, ... The third digit is uplevel, 1 to make bookmarklet valid for parent path of [url].</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>c[cssFlag]: For example, "c12" will apply the third and fourth global CSS (12=2^2+2^3).</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>[?postfix]: the real visited url is "[url]+[?postfix]".</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>[/.../localfile]: load the local html/js file that processes [url]. The first character of the local html file must be "<".</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>All other cases will be treated as [prefix], the real visited url is "[prefix]+[url]".</p>
|
||||
<li>[bookmarklet index] must have two/three digits. The first two digits are used as index of bootmarklet. For example, "00" as the first local bookmarklet; "01" as the first remote script; then "02" as the second local bookmarklet, ... The third digit is uplevel, 1 to make bookmarklet valid for parent path of [url].</li>
|
||||
<li>c[cssFlag]: For example, "c12" will apply the third and fourth global CSS (12=2^2+2^3).</li>
|
||||
<li>[?postfix]: the real visited url is "[url]+[?postfix]".</li>
|
||||
<li>[/.../localfile]: load the local html/js file that processes [url]. The first character of the local html file must be "<".</li>
|
||||
<li>All other cases will be treated as [prefix], the real visited url is "[prefix]+[url]".</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<p>i:15[string]<br>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
<url>
|
||||
<loc>/en/_posts/</loc>
|
||||
<lastmod>2022-11-25T00:00:00+00:00</lastmod>
|
||||
<lastmod>2023-01-08T00:00:00+00:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="zh"
|
||||
|
@ -14,6 +14,22 @@
|
|||
hreflang="en"
|
||||
href="/en/_posts/"
|
||||
/>
|
||||
</url><url>
|
||||
<loc>/en/acmd/</loc>
|
||||
<lastmod>2023-01-08T00:00:00+00:00</lastmod>
|
||||
</url><url>
|
||||
<loc>/en/</loc>
|
||||
<lastmod>2023-01-08T00:00:00+00:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="zh"
|
||||
href="/zh/"
|
||||
/>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="en"
|
||||
href="/en/"
|
||||
/>
|
||||
</url><url>
|
||||
<loc>/en/offlinecache/</loc>
|
||||
<lastmod>2022-11-25T00:00:00+00:00</lastmod>
|
||||
|
@ -27,19 +43,6 @@
|
|||
hreflang="en"
|
||||
href="/en/offlinecache/"
|
||||
/>
|
||||
</url><url>
|
||||
<loc>/en/</loc>
|
||||
<lastmod>2022-11-25T00:00:00+00:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="zh"
|
||||
href="/zh/"
|
||||
/>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="en"
|
||||
href="/en/"
|
||||
/>
|
||||
</url><url>
|
||||
<loc>/en/url2site/</loc>
|
||||
<lastmod>2022-10-30T00:00:00+00:00</lastmod>
|
||||
|
@ -72,9 +75,6 @@
|
|||
hreflang="en"
|
||||
href="/en/topposts/"
|
||||
/>
|
||||
</url><url>
|
||||
<loc>/en/acmd/</loc>
|
||||
<lastmod>2022-07-30T00:00:00+00:00</lastmod>
|
||||
</url><url>
|
||||
<loc>/en/search/</loc>
|
||||
<lastmod>2022-07-29T00:00:00+00:00</lastmod>
|
||||
|
|
11
index.html
11
index.html
|
@ -1 +1,10 @@
|
|||
<meta http-equiv="refresh" content="0; url=en/index.html">
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>en/</title>
|
||||
<link rel="canonical" href="en/">
|
||||
<meta name="robots" content="noindex">
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="refresh" content="0; url=en/">
|
||||
</head>
|
||||
</html>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<sitemap>
|
||||
<loc>en/sitemap.xml</loc>
|
||||
|
||||
<lastmod>2022-11-25T00:00:00+00:00</lastmod>
|
||||
<lastmod>2023-01-08T00:00:00+00:00</lastmod>
|
||||
|
||||
</sitemap>
|
||||
|
||||
|
|
Loading…
Reference in a new issue