address bar: :! command line doc

This commit is contained in:
James Feng Cao 2023-01-09 08:03:02 +08:00
parent cd87cc793c
commit db629abf0f
9 changed files with 83 additions and 76 deletions

View File

@ -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>&amp;quot;:!&amp;quot; command line Pressing &amp;quot;:&amp;quot; or &amp;quot;!&amp;quot; with hardware keyboard sets focus on the address bar.
The command line could be a &amp;quot;.js&amp;quot;, &amp;quot;.sh&amp;quot; or other executable with arguments. Ex. &amp;quot;:!s g keyword&amp;quot; could invoke &amp;quot;s.js&amp;quot; executable with the whole string as arguments (&amp;quot;s.sh&amp;quot; or &amp;quot;s&amp;quot; if file exists, here &amp;quot;g&amp;quot; as google search engine); &amp;quot;:! g keyword&amp;quot; would invoke the file &amp;quot;.js&amp;quot; or &amp;quot;.sh&amp;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 &amp;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 &amp;quot;default.acmd&amp;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 &amp;quot;refresh&amp;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>

View File

@ -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">&quot;:!&quot; command line</h3>
<p>Pressing &quot;:&quot; or &quot;!&quot; with hardware keyboard sets focus on the address bar.<br>
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.</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 &quot;.sh&quot;</a><br>
<a href="i:0hs.js:../searchurl/txt/web.js">Click to install the example file &quot;s.js&quot;</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 &quot;default.acmd&quot; 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 &quot;refresh&quot; 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>

View File

@ -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: &quot;:!&quot; for command line support (.js/.sh files as executables).<br>
<p>954: Address bar: <a href="../links/index.html">&quot;:!&quot;</a> for command line support (.js/.sh files as executables).<br>
953: hardware keyboard: &quot;:&quot;, &quot;!&quot; to set focus on address bar<br>
949: Address bar: &quot;:p [width in milliInch]x[height]&quot; to generate PDF in custom size<br>
946: Option &quot;use offline cache&quot; to support serverless local websites.</p>

View File

@ -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>

View File

@ -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>&amp;quot;:!&amp;quot; command line Pressing &amp;quot;:&amp;quot; or &amp;quot;!&amp;quot; with hardware keyboard sets focus on the address bar.
The command line could be a &amp;quot;.js&amp;quot;, &amp;quot;.sh&amp;quot; or other executable with arguments. Ex. &amp;quot;:!s g keyword&amp;quot; could invoke &amp;quot;s.js&amp;quot; executable with the whole string as arguments (&amp;quot;s.sh&amp;quot; or &amp;quot;s&amp;quot; if file exists, here &amp;quot;g&amp;quot; as google search engine); &amp;quot;:! g keyword&amp;quot; would invoke the file &amp;quot;.js&amp;quot; or &amp;quot;.sh&amp;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: &amp;quot;:!&amp;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 &amp;quot;default.acmd&amp;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 &amp;quot;refresh&amp;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>

View File

@ -98,17 +98,19 @@ Socks proxy</p>
</ul>
<h4 id="commands">commands</h4>
<ul>
<li>:![command line]<br>
The command line could be a &quot;.js&quot;, &quot;.sh&quot; or other executable with arguments. Ex. &quot;:!s youtube 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); &quot;:! youtube keyword&quot; would invoke the file &quot;.js&quot; or &quot;.sh&quot; as executable.</li>
</ul>
<li>
<p>:![command line]<br>
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.</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 &quot;.sh&quot;</a><br>
<a href="i:0hs.js:../searchurl/txt/web.js">Click to install the example file &quot;s.js&quot;</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 &quot;/sdcard/Download&quot; folder, all units are milliinch.<br>
Ex. &quot;:p x&quot; or &quot;:px&quot; for screen width and infinite height (as long vector screenshot).<br>
&quot;:p x[height]&quot; or &quot;:px[height]&quot; for screen width.</li>
&quot;:p x[height]&quot; or &quot;:px[height]&quot; for screen width.</p>
</li>
</ul>
<h3 id="i-internal-links">&quot;i:&quot; 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, &quot;00&quot; as the first local bookmarklet; &quot;01&quot; as the first remote script; then &quot;02&quot; 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, &quot;c12&quot; will apply the third and fourth global CSS (12=2^2+2^3).</p>
</li>
<li>
<p>[?postfix]: the real visited url is &quot;[url]+[?postfix]&quot;.</p>
</li>
<li>
<p>[/.../localfile]: load the local html/js file that processes [url]. The first character of the local html file must be &quot;&lt;&quot;.</p>
</li>
<li>
<p>All other cases will be treated as [prefix], the real visited url is &quot;[prefix]+[url]&quot;.</p>
<li>[bookmarklet index] must have two/three digits. The first two digits are used as index of bootmarklet. For example, &quot;00&quot; as the first local bookmarklet; &quot;01&quot; as the first remote script; then &quot;02&quot; 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, &quot;c12&quot; will apply the third and fourth global CSS (12=2^2+2^3).</li>
<li>[?postfix]: the real visited url is &quot;[url]+[?postfix]&quot;.</li>
<li>[/.../localfile]: load the local html/js file that processes [url]. The first character of the local html file must be &quot;&lt;&quot;.</li>
<li>All other cases will be treated as [prefix], the real visited url is &quot;[prefix]+[url]&quot;.</li>
</ul>
</li>
<li>
<p>i:15[string]<br>

View File

@ -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>

View File

@ -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>

View File

@ -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>