This commit is contained in:
archseer 2021-06-20 04:04:49 +00:00
parent e0c02c0ecd
commit 1498c6ea69
6 changed files with 64 additions and 64 deletions

View File

@ -282,10 +282,10 @@ the selection.</p>
<h2 id="window-mode"><a class="header" href="#window-mode">Window mode</a></h2> <h2 id="window-mode"><a class="header" href="#window-mode">Window mode</a></h2>
<p>This layer is similar to vim keybindings as kakoune does not support window.</p> <p>This layer is similar to vim keybindings as kakoune does not support window.</p>
<table><thead><tr><th>Key</th><th>Description</th></tr></thead><tbody> <table><thead><tr><th>Key</th><th>Description</th></tr></thead><tbody>
<tr><td><code>w</code>, <code>ctrl-w</code></td><td>Switch to next window</td></tr> <tr><td><code>w</code>, <code>Ctrl-w</code></td><td>Switch to next window</td></tr>
<tr><td><code>v</code>, <code>ctrl-v</code></td><td>Vertical right split</td></tr> <tr><td><code>v</code>, <code>Ctrl-v</code></td><td>Vertical right split</td></tr>
<tr><td><code>h</code>, <code>ctrl-h</code></td><td>Horizontal bottom split</td></tr> <tr><td><code>h</code>, <code>Ctrl-h</code></td><td>Horizontal bottom split</td></tr>
<tr><td><code>q</code>, <code>ctrl-q</code></td><td>Close current window</td></tr> <tr><td><code>q</code>, <code>Ctrl-q</code></td><td>Close current window</td></tr>
</tbody></table> </tbody></table>
<h2 id="space-mode"><a class="header" href="#space-mode">Space mode</a></h2> <h2 id="space-mode"><a class="header" href="#space-mode">Space mode</a></h2>
<p>This layer is a kludge of mappings I had under leader key in neovim.</p> <p>This layer is a kludge of mappings I had under leader key in neovim.</p>
@ -305,7 +305,7 @@ the selection.</p>
<tr><td><code>Enter</code></td><td>Open selected</td></tr> <tr><td><code>Enter</code></td><td>Open selected</td></tr>
<tr><td><code>Ctrl-h</code></td><td>Open horizontally</td></tr> <tr><td><code>Ctrl-h</code></td><td>Open horizontally</td></tr>
<tr><td><code>Ctrl-v</code></td><td>Open vertically</td></tr> <tr><td><code>Ctrl-v</code></td><td>Open vertically</td></tr>
<tr><td><code>Escape</code>, <code>ctrl-c</code></td><td>Close picker</td></tr> <tr><td><code>Escape</code>, <code>Ctrl-c</code></td><td>Close picker</td></tr>
</tbody></table> </tbody></table>
</main> </main>

View File

@ -187,7 +187,7 @@ it with:</p>
<div style="break-before: page; page-break-before: always;"></div><h1 id="themes"><a class="header" href="#themes">Themes</a></h1> <div style="break-before: page; page-break-before: always;"></div><h1 id="themes"><a class="header" href="#themes">Themes</a></h1>
<p>First you'll need to place selected themes in your <code>themes</code> directory (i.e <code>~/.config/helix/themes</code>), the directory might have to be created beforehand.</p> <p>First you'll need to place selected themes in your <code>themes</code> directory (i.e <code>~/.config/helix/themes</code>), the directory might have to be created beforehand.</p>
<p>To use a custom theme add <code>theme = &lt;name&gt;</code> to your <a href="./configuration.html"><code>config.toml</code></a> or override it during runtime using <code>:theme &lt;name&gt;</code>.</p> <p>To use a custom theme add <code>theme = &lt;name&gt;</code> to your <a href="./configuration.html"><code>config.toml</code></a> or override it during runtime using <code>:theme &lt;name&gt;</code>.</p>
<p>The default theme.toml can be found <a href="https://github.com/helix-editor/helix/blob/master/theme.toml">here</a>, and user submitted themes <a href="https://github.com/helix-editor/helix/blob/master/contrib/themes">here</a>. </p> <p>The default theme.toml can be found <a href="https://github.com/helix-editor/helix/blob/master/theme.toml">here</a>, and user submitted themes <a href="https://github.com/helix-editor/helix/blob/master/runtime/themes">here</a>. </p>
<h2 id="creating-a-theme"><a class="header" href="#creating-a-theme">Creating a theme</a></h2> <h2 id="creating-a-theme"><a class="header" href="#creating-a-theme">Creating a theme</a></h2>
<p>First create a file with the name of your theme as file name (i.e <code>mytheme.toml</code>) and place it in your <code>themes</code> directory (i.e <code>~/.config/helix/themes</code>).</p> <p>First create a file with the name of your theme as file name (i.e <code>mytheme.toml</code>) and place it in your <code>themes</code> directory (i.e <code>~/.config/helix/themes</code>).</p>
<p>Each line in the theme file is specified as below:</p> <p>Each line in the theme file is specified as below:</p>
@ -394,10 +394,10 @@ the selection.</p>
<h2 id="window-mode"><a class="header" href="#window-mode">Window mode</a></h2> <h2 id="window-mode"><a class="header" href="#window-mode">Window mode</a></h2>
<p>This layer is similar to vim keybindings as kakoune does not support window.</p> <p>This layer is similar to vim keybindings as kakoune does not support window.</p>
<table><thead><tr><th>Key</th><th>Description</th></tr></thead><tbody> <table><thead><tr><th>Key</th><th>Description</th></tr></thead><tbody>
<tr><td><code>w</code>, <code>ctrl-w</code></td><td>Switch to next window</td></tr> <tr><td><code>w</code>, <code>Ctrl-w</code></td><td>Switch to next window</td></tr>
<tr><td><code>v</code>, <code>ctrl-v</code></td><td>Vertical right split</td></tr> <tr><td><code>v</code>, <code>Ctrl-v</code></td><td>Vertical right split</td></tr>
<tr><td><code>h</code>, <code>ctrl-h</code></td><td>Horizontal bottom split</td></tr> <tr><td><code>h</code>, <code>Ctrl-h</code></td><td>Horizontal bottom split</td></tr>
<tr><td><code>q</code>, <code>ctrl-q</code></td><td>Close current window</td></tr> <tr><td><code>q</code>, <code>Ctrl-q</code></td><td>Close current window</td></tr>
</tbody></table> </tbody></table>
<h2 id="space-mode"><a class="header" href="#space-mode">Space mode</a></h2> <h2 id="space-mode"><a class="header" href="#space-mode">Space mode</a></h2>
<p>This layer is a kludge of mappings I had under leader key in neovim.</p> <p>This layer is a kludge of mappings I had under leader key in neovim.</p>
@ -417,7 +417,7 @@ the selection.</p>
<tr><td><code>Enter</code></td><td>Open selected</td></tr> <tr><td><code>Enter</code></td><td>Open selected</td></tr>
<tr><td><code>Ctrl-h</code></td><td>Open horizontally</td></tr> <tr><td><code>Ctrl-h</code></td><td>Open horizontally</td></tr>
<tr><td><code>Ctrl-v</code></td><td>Open vertically</td></tr> <tr><td><code>Ctrl-v</code></td><td>Open vertically</td></tr>
<tr><td><code>Escape</code>, <code>ctrl-c</code></td><td>Close picker</td></tr> <tr><td><code>Escape</code>, <code>Ctrl-c</code></td><td>Close picker</td></tr>
</tbody></table> </tbody></table>
<div style="break-before: page; page-break-before: always;"></div><h1 id="key-remapping"><a class="header" href="#key-remapping">Key Remapping</a></h1> <div style="break-before: page; page-break-before: always;"></div><h1 id="key-remapping"><a class="header" href="#key-remapping">Key Remapping</a></h1>
<p>One-way key remapping is temporarily supported via a simple TOML configuration <p>One-way key remapping is temporarily supported via a simple TOML configuration
@ -437,31 +437,31 @@ A-x = &quot;normal_mode&quot; # Maps Alt-X to enter normal mode
</code></pre> </code></pre>
<p>Control, Shift and Alt modifiers are encoded respectively with the prefixes <p>Control, Shift and Alt modifiers are encoded respectively with the prefixes
<code>C-</code>, <code>S-</code> and <code>A-</code>. Special keys are encoded as follows:</p> <code>C-</code>, <code>S-</code> and <code>A-</code>. Special keys are encoded as follows:</p>
<ul> <table><thead><tr><th>Key name</th><th>Representation</th></tr></thead><tbody>
<li>Backspace =&gt; &quot;backspace&quot;</li> <tr><td>Backspace</td><td><code>&quot;backspace&quot;</code></td></tr>
<li>Space =&gt; &quot;space&quot;</li> <tr><td>Space</td><td><code>&quot;space&quot;</code></td></tr>
<li>Return/Enter =&gt; &quot;ret&quot;</li> <tr><td>Return/Enter</td><td><code>&quot;ret&quot;</code></td></tr>
<li>&lt; =&gt; &quot;lt&quot;</li> <tr><td>&lt;</td><td><code>&quot;lt&quot;</code></td></tr>
<li>&gt; =&gt; &quot;gt&quot;</li> <tr><td>&gt;</td><td><code>&quot;gt&quot;</code></td></tr>
<li>+ =&gt; &quot;plus&quot;</li> <tr><td>+</td><td><code>&quot;plus&quot;</code></td></tr>
<li>- =&gt; &quot;minus&quot;</li> <tr><td>-</td><td><code>&quot;minus&quot;</code></td></tr>
<li>; =&gt; &quot;semicolon&quot;</li> <tr><td>;</td><td><code>&quot;semicolon&quot;</code></td></tr>
<li>% =&gt; &quot;percent&quot;</li> <tr><td>%</td><td><code>&quot;percent&quot;</code></td></tr>
<li>Left =&gt; &quot;left&quot;</li> <tr><td>Left</td><td><code>&quot;left&quot;</code></td></tr>
<li>Right =&gt; &quot;right&quot;</li> <tr><td>Right</td><td><code>&quot;right&quot;</code></td></tr>
<li>Up =&gt; &quot;up&quot;</li> <tr><td>Up</td><td><code>&quot;up&quot;</code></td></tr>
<li>Home =&gt; &quot;home&quot;</li> <tr><td>Home</td><td><code>&quot;home&quot;</code></td></tr>
<li>End =&gt; &quot;end&quot;</li> <tr><td>End</td><td><code>&quot;end&quot;</code></td></tr>
<li>Page Up =&gt; &quot;pageup&quot;</li> <tr><td>Page</td><td><code>&quot;pageup&quot;</code></td></tr>
<li>Page Down =&gt; &quot;pagedown&quot;</li> <tr><td>Page</td><td><code>&quot;pagedown&quot;</code></td></tr>
<li>Tab =&gt; &quot;tab&quot;</li> <tr><td>Tab</td><td><code>&quot;tab&quot;</code></td></tr>
<li>Back Tab =&gt; &quot;backtab&quot;</li> <tr><td>Back</td><td><code>&quot;backtab&quot;</code></td></tr>
<li>Delete =&gt; &quot;del&quot;</li> <tr><td>Delete</td><td><code>&quot;del&quot;</code></td></tr>
<li>Insert =&gt; &quot;ins&quot;</li> <tr><td>Insert</td><td><code>&quot;ins&quot;</code></td></tr>
<li>Null =&gt; &quot;null&quot;</li> <tr><td>Null</td><td><code>&quot;null&quot;</code></td></tr>
<li>Escape =&gt; &quot;esc&quot;</li> <tr><td>Escape</td><td><code>&quot;esc&quot;</code></td></tr>
</ul> </tbody></table>
<p>Commands can be found in the source code at <code>../../helix-term/src/commands.rs</code></p> <p>Commands can be found in the source code at <a href="https://github.com/helix-editor/helix/blob/master/helix-term/src/commands.rs"><code>helix-term/src/commands.rs</code></a></p>
<div style="break-before: page; page-break-before: always;"></div><h1 id="hooks"><a class="header" href="#hooks">Hooks</a></h1> <div style="break-before: page; page-break-before: always;"></div><h1 id="hooks"><a class="header" href="#hooks">Hooks</a></h1>
</main> </main>

View File

@ -163,31 +163,31 @@ A-x = &quot;normal_mode&quot; # Maps Alt-X to enter normal mode
</code></pre> </code></pre>
<p>Control, Shift and Alt modifiers are encoded respectively with the prefixes <p>Control, Shift and Alt modifiers are encoded respectively with the prefixes
<code>C-</code>, <code>S-</code> and <code>A-</code>. Special keys are encoded as follows:</p> <code>C-</code>, <code>S-</code> and <code>A-</code>. Special keys are encoded as follows:</p>
<ul> <table><thead><tr><th>Key name</th><th>Representation</th></tr></thead><tbody>
<li>Backspace =&gt; &quot;backspace&quot;</li> <tr><td>Backspace</td><td><code>&quot;backspace&quot;</code></td></tr>
<li>Space =&gt; &quot;space&quot;</li> <tr><td>Space</td><td><code>&quot;space&quot;</code></td></tr>
<li>Return/Enter =&gt; &quot;ret&quot;</li> <tr><td>Return/Enter</td><td><code>&quot;ret&quot;</code></td></tr>
<li>&lt; =&gt; &quot;lt&quot;</li> <tr><td>&lt;</td><td><code>&quot;lt&quot;</code></td></tr>
<li>&gt; =&gt; &quot;gt&quot;</li> <tr><td>&gt;</td><td><code>&quot;gt&quot;</code></td></tr>
<li>+ =&gt; &quot;plus&quot;</li> <tr><td>+</td><td><code>&quot;plus&quot;</code></td></tr>
<li>- =&gt; &quot;minus&quot;</li> <tr><td>-</td><td><code>&quot;minus&quot;</code></td></tr>
<li>; =&gt; &quot;semicolon&quot;</li> <tr><td>;</td><td><code>&quot;semicolon&quot;</code></td></tr>
<li>% =&gt; &quot;percent&quot;</li> <tr><td>%</td><td><code>&quot;percent&quot;</code></td></tr>
<li>Left =&gt; &quot;left&quot;</li> <tr><td>Left</td><td><code>&quot;left&quot;</code></td></tr>
<li>Right =&gt; &quot;right&quot;</li> <tr><td>Right</td><td><code>&quot;right&quot;</code></td></tr>
<li>Up =&gt; &quot;up&quot;</li> <tr><td>Up</td><td><code>&quot;up&quot;</code></td></tr>
<li>Home =&gt; &quot;home&quot;</li> <tr><td>Home</td><td><code>&quot;home&quot;</code></td></tr>
<li>End =&gt; &quot;end&quot;</li> <tr><td>End</td><td><code>&quot;end&quot;</code></td></tr>
<li>Page Up =&gt; &quot;pageup&quot;</li> <tr><td>Page</td><td><code>&quot;pageup&quot;</code></td></tr>
<li>Page Down =&gt; &quot;pagedown&quot;</li> <tr><td>Page</td><td><code>&quot;pagedown&quot;</code></td></tr>
<li>Tab =&gt; &quot;tab&quot;</li> <tr><td>Tab</td><td><code>&quot;tab&quot;</code></td></tr>
<li>Back Tab =&gt; &quot;backtab&quot;</li> <tr><td>Back</td><td><code>&quot;backtab&quot;</code></td></tr>
<li>Delete =&gt; &quot;del&quot;</li> <tr><td>Delete</td><td><code>&quot;del&quot;</code></td></tr>
<li>Insert =&gt; &quot;ins&quot;</li> <tr><td>Insert</td><td><code>&quot;ins&quot;</code></td></tr>
<li>Null =&gt; &quot;null&quot;</li> <tr><td>Null</td><td><code>&quot;null&quot;</code></td></tr>
<li>Escape =&gt; &quot;esc&quot;</li> <tr><td>Escape</td><td><code>&quot;esc&quot;</code></td></tr>
</ul> </tbody></table>
<p>Commands can be found in the source code at <code>../../helix-term/src/commands.rs</code></p> <p>Commands can be found in the source code at <a href="https://github.com/helix-editor/helix/blob/master/helix-term/src/commands.rs"><code>helix-term/src/commands.rs</code></a></p>
</main> </main>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -148,7 +148,7 @@
<h1 id="themes"><a class="header" href="#themes">Themes</a></h1> <h1 id="themes"><a class="header" href="#themes">Themes</a></h1>
<p>First you'll need to place selected themes in your <code>themes</code> directory (i.e <code>~/.config/helix/themes</code>), the directory might have to be created beforehand.</p> <p>First you'll need to place selected themes in your <code>themes</code> directory (i.e <code>~/.config/helix/themes</code>), the directory might have to be created beforehand.</p>
<p>To use a custom theme add <code>theme = &lt;name&gt;</code> to your <a href="./configuration.html"><code>config.toml</code></a> or override it during runtime using <code>:theme &lt;name&gt;</code>.</p> <p>To use a custom theme add <code>theme = &lt;name&gt;</code> to your <a href="./configuration.html"><code>config.toml</code></a> or override it during runtime using <code>:theme &lt;name&gt;</code>.</p>
<p>The default theme.toml can be found <a href="https://github.com/helix-editor/helix/blob/master/theme.toml">here</a>, and user submitted themes <a href="https://github.com/helix-editor/helix/blob/master/contrib/themes">here</a>. </p> <p>The default theme.toml can be found <a href="https://github.com/helix-editor/helix/blob/master/theme.toml">here</a>, and user submitted themes <a href="https://github.com/helix-editor/helix/blob/master/runtime/themes">here</a>. </p>
<h2 id="creating-a-theme"><a class="header" href="#creating-a-theme">Creating a theme</a></h2> <h2 id="creating-a-theme"><a class="header" href="#creating-a-theme">Creating a theme</a></h2>
<p>First create a file with the name of your theme as file name (i.e <code>mytheme.toml</code>) and place it in your <code>themes</code> directory (i.e <code>~/.config/helix/themes</code>).</p> <p>First create a file with the name of your theme as file name (i.e <code>mytheme.toml</code>) and place it in your <code>themes</code> directory (i.e <code>~/.config/helix/themes</code>).</p>
<p>Each line in the theme file is specified as below:</p> <p>Each line in the theme file is specified as below:</p>