gh-pages
archseer 3 years ago
parent 7aea89edf2
commit 60e834aa0b

@ -281,12 +281,15 @@ the selection.</p>
</tbody></table>
<h2 id="match-mode"><a class="header" href="#match-mode">Match mode</a></h2>
<p>Enter this mode using <code>m</code> from normal mode. See the relavant section
in <a href="./usage.html#surround">Usage</a> for an explanation about surround usage.</p>
in <a href="./usage.html">Usage</a> for an explanation about <a href="./usage.html#surround">surround</a>
and <a href="./usage.html#textobject">textobject</a> usage.</p>
<table><thead><tr><th>Key</th><th>Description</th></tr></thead><tbody>
<tr><td><code>m</code></td><td>Goto matching bracket</td></tr>
<tr><td><code>s</code> <code>&lt;char&gt;</code></td><td>Surround current selection with <code>&lt;char&gt;</code></td></tr>
<tr><td><code>r</code> <code>&lt;from&gt;&lt;to&gt;</code></td><td>Replace surround character <code>&lt;from&gt;</code> with <code>&lt;to&gt;</code></td></tr>
<tr><td><code>d</code> <code>&lt;char&gt;</code></td><td>Delete surround character <code>&lt;char&gt;</code></td></tr>
<tr><td><code>a</code> <code>&lt;object&gt;</code></td><td>Select around textobject</td></tr>
<tr><td><code>i</code> <code>&lt;object&gt;</code></td><td>Select inside textobject</td></tr>
</tbody></table>
<h2 id="object-mode"><a class="header" href="#object-mode">Object mode</a></h2>
<p>TODO: Mappings for selecting syntax nodes (a superset of <code>[</code>).</p>

@ -199,6 +199,18 @@ on the closest pairs found and selections are not required; use counts to act in
<li><code>mr([</code> to replace the parens with square brackets</li>
</ul>
<p>Multiple characters are currently not supported, but planned.</p>
<h2 id="textobjects"><a class="header" href="#textobjects">Textobjects</a></h2>
<p>Currently supported: <code>word</code>, <code>surround</code>.</p>
<p><img src="https://user-images.githubusercontent.com/23398472/124231131-81a4bb00-db2d-11eb-9d10-8e577ca7b177.gif" alt="textobject-demo" /></p>
<ul>
<li><code>ma</code> - Select around the object (<code>va</code> in vim, <code>&lt;alt-a&gt;</code> in kakoune)</li>
<li><code>mi</code> - Select inside the object (<code>vi</code> in vim, <code>&lt;alt-i&gt;</code> in kakoune)</li>
</ul>
<table><thead><tr><th>Key after <code>mi</code> or <code>ma</code></th><th>Textobject selected</th></tr></thead><tbody>
<tr><td><code>w</code></td><td>Word</td></tr>
<tr><td><code>(</code>, <code>[</code>, <code>'</code>, etc</td><td>Specified surround pairs</td></tr>
</tbody></table>
<p>Textobjects based on treesitter, like <code>function</code>, <code>class</code>, etc are planned.</p>
<div style="break-before: page; page-break-before: always;"></div><h1 id="configuration"><a class="header" href="#configuration">Configuration</a></h1>
<p>To override global configuration parameters create a <code>config.toml</code> file located in your config directory (i.e <code>~/.config/helix/config.toml</code>).</p>
<h2 id="lsp"><a class="header" href="#lsp">LSP</a></h2>
@ -435,12 +447,15 @@ the selection.</p>
</tbody></table>
<h2 id="match-mode"><a class="header" href="#match-mode">Match mode</a></h2>
<p>Enter this mode using <code>m</code> from normal mode. See the relavant section
in <a href="./usage.html#surround">Usage</a> for an explanation about surround usage.</p>
in <a href="./usage.html">Usage</a> for an explanation about <a href="./usage.html#surround">surround</a>
and <a href="./usage.html#textobject">textobject</a> usage.</p>
<table><thead><tr><th>Key</th><th>Description</th></tr></thead><tbody>
<tr><td><code>m</code></td><td>Goto matching bracket</td></tr>
<tr><td><code>s</code> <code>&lt;char&gt;</code></td><td>Surround current selection with <code>&lt;char&gt;</code></td></tr>
<tr><td><code>r</code> <code>&lt;from&gt;&lt;to&gt;</code></td><td>Replace surround character <code>&lt;from&gt;</code> with <code>&lt;to&gt;</code></td></tr>
<tr><td><code>d</code> <code>&lt;char&gt;</code></td><td>Delete surround character <code>&lt;char&gt;</code></td></tr>
<tr><td><code>a</code> <code>&lt;object&gt;</code></td><td>Select around textobject</td></tr>
<tr><td><code>i</code> <code>&lt;object&gt;</code></td><td>Select inside textobject</td></tr>
</tbody></table>
<h2 id="object-mode"><a class="header" href="#object-mode">Object mode</a></h2>
<p>TODO: Mappings for selecting syntax nodes (a superset of <code>[</code>).</p>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -166,6 +166,18 @@ on the closest pairs found and selections are not required; use counts to act in
<li><code>mr([</code> to replace the parens with square brackets</li>
</ul>
<p>Multiple characters are currently not supported, but planned.</p>
<h2 id="textobjects"><a class="header" href="#textobjects">Textobjects</a></h2>
<p>Currently supported: <code>word</code>, <code>surround</code>.</p>
<p><img src="https://user-images.githubusercontent.com/23398472/124231131-81a4bb00-db2d-11eb-9d10-8e577ca7b177.gif" alt="textobject-demo" /></p>
<ul>
<li><code>ma</code> - Select around the object (<code>va</code> in vim, <code>&lt;alt-a&gt;</code> in kakoune)</li>
<li><code>mi</code> - Select inside the object (<code>vi</code> in vim, <code>&lt;alt-i&gt;</code> in kakoune)</li>
</ul>
<table><thead><tr><th>Key after <code>mi</code> or <code>ma</code></th><th>Textobject selected</th></tr></thead><tbody>
<tr><td><code>w</code></td><td>Word</td></tr>
<tr><td><code>(</code>, <code>[</code>, <code>'</code>, etc</td><td>Specified surround pairs</td></tr>
</tbody></table>
<p>Textobjects based on treesitter, like <code>function</code>, <code>class</code>, etc are planned.</p>
</main>

Loading…
Cancel
Save