address bar: support ! command line

This commit is contained in:
James Feng Cao 2023-01-14 17:19:47 +08:00
parent 77a7fc60be
commit 36012141dd
5 changed files with 8 additions and 10 deletions

View file

@ -43,7 +43,7 @@
<ul class="tags">
</ul>
<h3 id="-command-line">&quot;:!&quot; command line</h3>
<h3 id="--or--command-line">&quot;:!&quot; ( or &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 could be treated as lines of urls (or html, plain text).</p>