pull/11885/head
pascalkuthe 5 months ago
parent a23b2f023d
commit f64ed38250

@ -221,7 +221,7 @@
<p>💡 Mappings marked (<strong>TS</strong>) require a tree-sitter grammar for the file type.</p> <p>💡 Mappings marked (<strong>TS</strong>) require a tree-sitter grammar for the file type.</p>
</blockquote> </blockquote>
<blockquote> <blockquote>
<p>⚠️ Some terminals' default key mappings conflict with Helix's. If any of the mappings described on this page do not work as expected, check your terminal's mappings to ensure they do not conflict. See the (wiki)[https://github.com/helix-editor/helix/wiki/Terminal-Support] for known conflicts.</p> <p>⚠️ Some terminals' default key mappings conflict with Helix's. If any of the mappings described on this page do not work as expected, check your terminal's mappings to ensure they do not conflict. See the <a href="https://github.com/helix-editor/helix/wiki/Terminal-Support">wiki</a> for known conflicts.</p>
</blockquote> </blockquote>
<h2 id="normal-mode"><a class="header" href="#normal-mode">Normal mode</a></h2> <h2 id="normal-mode"><a class="header" href="#normal-mode">Normal mode</a></h2>
<p>Normal mode is the default mode when you launch helix. You can return to it from other modes by pressing the <code>Escape</code> key.</p> <p>Normal mode is the default mode when you launch helix. You can return to it from other modes by pressing the <code>Escape</code> key.</p>
@ -409,8 +409,7 @@ useful when you're simply looking over text and not actively editing it.</p>
</div> </div>
<h4 id="match-mode"><a class="header" href="#match-mode">Match mode</a></h4> <h4 id="match-mode"><a class="header" href="#match-mode">Match mode</a></h4>
<p>Accessed by typing <code>m</code> in <a href="#normal-mode">normal mode</a>.</p> <p>Accessed by typing <code>m</code> in <a href="#normal-mode">normal mode</a>.</p>
<p>See the relevant section in <a href="./usage.html">Usage</a> for an explanation about <p>Please refer to the relevant sections for detailed explanations about <a href="./surround.html">surround</a> and <a href="./textobjects.html">textobjects</a>.</p>
<a href="./usage.html#surround">surround</a> and <a href="./usage.html#navigating-using-tree-sitter-textobjects">textobject</a> usage.</p>
<div class="table-wrapper"><table><thead><tr><th>Key</th><th>Description</th><th>Command</th></tr></thead><tbody> <div class="table-wrapper"><table><thead><tr><th>Key</th><th>Description</th><th>Command</th></tr></thead><tbody>
<tr><td><code>m</code></td><td>Goto matching bracket (<strong>TS</strong>)</td><td><code>match_brackets</code></td></tr> <tr><td><code>m</code></td><td>Goto matching bracket (<strong>TS</strong>)</td><td><code>match_brackets</code></td></tr>
<tr><td><code>s</code> <code>&lt;char&gt;</code></td><td>Surround current selection with <code>&lt;char&gt;</code></td><td><code>surround_add</code></td></tr> <tr><td><code>s</code> <code>&lt;char&gt;</code></td><td>Surround current selection with <code>&lt;char&gt;</code></td><td><code>surround_add</code></td></tr>

@ -541,8 +541,8 @@ function or block of code.</p>
</div> </div>
<blockquote> <blockquote>
<p>💡 <code>f</code>, <code>t</code>, etc. need a tree-sitter grammar active for the current <p>💡 <code>f</code>, <code>t</code>, etc. need a tree-sitter grammar active for the current
document and a special tree-sitter query file to work properly. [Only document and a special tree-sitter query file to work properly. <a href="./lang-support.html">Only
some grammars][lang-support] currently have the query file implemented. some grammars</a> currently have the query file implemented.
Contributions are welcome!</p> Contributions are welcome!</p>
</blockquote> </blockquote>
<h2 id="navigating-using-tree-sitter-textobjects"><a class="header" href="#navigating-using-tree-sitter-textobjects">Navigating using tree-sitter textobjects</a></h2> <h2 id="navigating-using-tree-sitter-textobjects"><a class="header" href="#navigating-using-tree-sitter-textobjects">Navigating using tree-sitter textobjects</a></h2>
@ -550,8 +550,8 @@ Contributions are welcome!</p>
possible using tree-sitter and textobject queries. For possible using tree-sitter and textobject queries. For
example to move to the next function use <code>]f</code>, to move to previous example to move to the next function use <code>]f</code>, to move to previous
type use <code>[t</code>, and so on.</p> type use <code>[t</code>, and so on.</p>
<p>![Tree-sitter-nav-demo][tree-sitter-nav-demo]</p> <p><img src="https://user-images.githubusercontent.com/23398472/152332550-7dfff043-36a2-4aec-b8f2-77c13eb56d6f.gif" alt="Tree-sitter-nav-demo" /></p>
<p>For the full reference see the [unimpaired][unimpaired-keybinds] section of the key bind <p>For the full reference see the <a href="./keymap.html#unimpaired">unimpaired</a> section of the key bind
documentation.</p> documentation.</p>
<blockquote> <blockquote>
<p>💡 This feature relies on tree-sitter textobjects <p>💡 This feature relies on tree-sitter textobjects
@ -647,7 +647,7 @@ selection to the "func" <code>identifier</code>.</p>
<p>💡 Mappings marked (<strong>TS</strong>) require a tree-sitter grammar for the file type.</p> <p>💡 Mappings marked (<strong>TS</strong>) require a tree-sitter grammar for the file type.</p>
</blockquote> </blockquote>
<blockquote> <blockquote>
<p>⚠️ Some terminals' default key mappings conflict with Helix's. If any of the mappings described on this page do not work as expected, check your terminal's mappings to ensure they do not conflict. See the (wiki)[https://github.com/helix-editor/helix/wiki/Terminal-Support] for known conflicts.</p> <p>⚠️ Some terminals' default key mappings conflict with Helix's. If any of the mappings described on this page do not work as expected, check your terminal's mappings to ensure they do not conflict. See the <a href="https://github.com/helix-editor/helix/wiki/Terminal-Support">wiki</a> for known conflicts.</p>
</blockquote> </blockquote>
<h2 id="normal-mode"><a class="header" href="#normal-mode">Normal mode</a></h2> <h2 id="normal-mode"><a class="header" href="#normal-mode">Normal mode</a></h2>
<p>Normal mode is the default mode when you launch helix. You can return to it from other modes by pressing the <code>Escape</code> key.</p> <p>Normal mode is the default mode when you launch helix. You can return to it from other modes by pressing the <code>Escape</code> key.</p>
@ -835,8 +835,7 @@ useful when you're simply looking over text and not actively editing it.</p>
</div> </div>
<h4 id="match-mode"><a class="header" href="#match-mode">Match mode</a></h4> <h4 id="match-mode"><a class="header" href="#match-mode">Match mode</a></h4>
<p>Accessed by typing <code>m</code> in <a href="keymap.html#normal-mode">normal mode</a>.</p> <p>Accessed by typing <code>m</code> in <a href="keymap.html#normal-mode">normal mode</a>.</p>
<p>See the relevant section in <a href="./usage.html">Usage</a> for an explanation about <p>Please refer to the relevant sections for detailed explanations about <a href="./surround.html">surround</a> and <a href="./textobjects.html">textobjects</a>.</p>
<a href="./usage.html#surround">surround</a> and <a href="./usage.html#navigating-using-tree-sitter-textobjects">textobject</a> usage.</p>
<div class="table-wrapper"><table><thead><tr><th>Key</th><th>Description</th><th>Command</th></tr></thead><tbody> <div class="table-wrapper"><table><thead><tr><th>Key</th><th>Description</th><th>Command</th></tr></thead><tbody>
<tr><td><code>m</code></td><td>Goto matching bracket (<strong>TS</strong>)</td><td><code>match_brackets</code></td></tr> <tr><td><code>m</code></td><td>Goto matching bracket (<strong>TS</strong>)</td><td><code>match_brackets</code></td></tr>
<tr><td><code>s</code> <code>&lt;char&gt;</code></td><td>Surround current selection with <code>&lt;char&gt;</code></td><td><code>surround_add</code></td></tr> <tr><td><code>s</code> <code>&lt;char&gt;</code></td><td>Surround current selection with <code>&lt;char&gt;</code></td><td><code>surround_add</code></td></tr>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -206,8 +206,8 @@ function or block of code.</p>
</div> </div>
<blockquote> <blockquote>
<p>💡 <code>f</code>, <code>t</code>, etc. need a tree-sitter grammar active for the current <p>💡 <code>f</code>, <code>t</code>, etc. need a tree-sitter grammar active for the current
document and a special tree-sitter query file to work properly. [Only document and a special tree-sitter query file to work properly. <a href="./lang-support.html">Only
some grammars][lang-support] currently have the query file implemented. some grammars</a> currently have the query file implemented.
Contributions are welcome!</p> Contributions are welcome!</p>
</blockquote> </blockquote>
<h2 id="navigating-using-tree-sitter-textobjects"><a class="header" href="#navigating-using-tree-sitter-textobjects">Navigating using tree-sitter textobjects</a></h2> <h2 id="navigating-using-tree-sitter-textobjects"><a class="header" href="#navigating-using-tree-sitter-textobjects">Navigating using tree-sitter textobjects</a></h2>
@ -215,8 +215,8 @@ Contributions are welcome!</p>
possible using tree-sitter and textobject queries. For possible using tree-sitter and textobject queries. For
example to move to the next function use <code>]f</code>, to move to previous example to move to the next function use <code>]f</code>, to move to previous
type use <code>[t</code>, and so on.</p> type use <code>[t</code>, and so on.</p>
<p>![Tree-sitter-nav-demo][tree-sitter-nav-demo]</p> <p><img src="https://user-images.githubusercontent.com/23398472/152332550-7dfff043-36a2-4aec-b8f2-77c13eb56d6f.gif" alt="Tree-sitter-nav-demo" /></p>
<p>For the full reference see the [unimpaired][unimpaired-keybinds] section of the key bind <p>For the full reference see the <a href="./keymap.html#unimpaired">unimpaired</a> section of the key bind
documentation.</p> documentation.</p>
<blockquote> <blockquote>
<p>💡 This feature relies on tree-sitter textobjects <p>💡 This feature relies on tree-sitter textobjects

Loading…
Cancel
Save