Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62

<style>
body                { margin: 0; }
pre                 { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padding: 0.4em; }

.lifetime           { color: #DFAF8F; font-style: italic; }
.label              { color: #DFAF8F; font-style: italic; }
.comment            { color: #7F9F7F; }
.documentation      { color: #629755; }
.intra_doc_link     { font-style: italic; }
.injected           { opacity: 0.65 ; }
.struct, .enum      { color: #7CB8BB; }
.enum_variant       { color: #BDE0F3; }
.string_literal     { color: #CC9393; }
.field              { color: #94BFF3; }
.function           { color: #93E0E3; }
.parameter          { color: #94BFF3; }
.text               { color: #DCDCCC; }
.type               { color: #7CB8BB; }
.builtin_type       { color: #8CD0D3; }
.type_param         { color: #DFAF8F; }
.attribute          { color: #94BFF3; }
.numeric_literal    { color: #BFEBBF; }
.bool_literal       { color: #BFE6EB; }
.macro              { color: #94BFF3; }
.proc_macro         { color: #94BFF3; text-decoration: underline; }
.derive             { color: #94BFF3; font-style: italic; }
.module             { color: #AFD8AF; }
.value_param        { color: #DCDCCC; }
.variable           { color: #DCDCCC; }
.format_specifier   { color: #CC696B; }
.mutable            { text-decoration: underline; }
.escape_sequence    { color: #94BFF3; }
.keyword            { color: #F0DFAF; font-weight: bold; }
.control            { font-style: italic; }
.reference          { font-style: italic; font-weight: bold; }
.const              { font-weight: bolder; }
.unsafe             { color: #BC8383; }
.deprecated         { text-decoration: line-through; }

.invalid_escape_sequence { color: #FC5555; text-decoration: wavy underline; }
.unresolved_reference    { color: #FC5555; text-decoration: wavy underline; }
</style>
<pre><code><span class="keyword">fn</span> <span class="function declaration">fixture</span><span class="parenthesis">(</span><span class="attribute_bracket attribute">#</span><span class="attribute_bracket attribute">[</span><span class="tool_module attribute">rust_analyzer</span><span class="operator attribute">::</span><span class="tool_module attribute">rust_fixture</span><span class="attribute_bracket attribute">]</span> <span class="value_param declaration reference">ra_fixture</span><span class="colon">:</span> <span class="punctuation">&</span><span class="builtin_type">str</span><span class="parenthesis">)</span> <span class="brace">{</span><span class="brace">}</span>

<span class="keyword">fn</span> <span class="function declaration">main</span><span class="parenthesis">(</span><span class="parenthesis">)</span> <span class="brace">{</span>
    <span class="function">fixture</span><span class="parenthesis">(</span><span class="string_literal">r#"</span>
@@- minicore: sized
<span class="keyword injected">trait</span><span class="none injected"> </span><span class="trait declaration injected">Foo</span><span class="colon injected">:</span><span class="none injected"> </span><span class="trait default_library injected library">Sized</span><span class="none injected"> </span><span class="brace injected">{</span><span class="none injected">
</span>    <span class="keyword injected">fn</span><span class="none injected"> </span><span class="function associated declaration injected static trait">foo</span><span class="parenthesis injected">(</span><span class="parenthesis injected">)</span><span class="none injected"> </span><span class="brace injected">{</span><span class="none injected">
</span>        <span class="unresolved_reference injected">println</span><span class="macro_bang injected">!</span><span class="parenthesis injected">(</span><span class="string_literal injected">"2 + 2 = {}"</span><span class="comma injected">,</span><span class="none injected"> </span><span class="numeric_literal injected">4</span><span class="parenthesis injected">)</span><span class="semicolon injected">;</span><span class="none injected">
</span>    <span class="brace injected">}</span><span class="none injected">
</span><span class="brace injected">}</span><span class="string_literal">"#</span>
    <span class="parenthesis">)</span><span class="semicolon">;</span>
    <span class="function">fixture</span><span class="parenthesis">(</span><span class="string_literal">r"</span>
<span class="keyword injected">fn</span><span class="none injected"> </span><span class="function declaration injected">foo</span><span class="parenthesis injected">(</span><span class="parenthesis injected">)</span><span class="none injected"> </span><span class="brace injected">{</span><span class="none injected">
</span>    <span class="function injected">foo</span><span class="parenthesis injected">(</span><span class="keyword injected">$0</span><span class="brace injected">{</span><span class="none injected">
</span>        <span class="numeric_literal injected">92</span><span class="none injected">
</span>    <span class="brace injected">}</span><span class="keyword injected">$0</span><span class="parenthesis injected">)</span><span class="none injected">
</span><span class="brace injected">}</span><span class="string_literal">"</span>
    <span class="parenthesis">)</span><span class="semicolon">;</span>
<span class="brace">}</span></code></pre>
light .sc { color: #D5FF80 } /* Literal.String.Char */ .highlight .dl { color: #D5FF80 } /* Literal.String.Delimiter */ .highlight .sd { color: #95E6CB; font-style: italic } /* Literal.String.Doc */ .highlight .s2 { color: #D5FF80 } /* Literal.String.Double */ .highlight .se { color: #D5FF80 } /* Literal.String.Escape */ .highlight .sh { color: #D5FF80 } /* Literal.String.Heredoc */ .highlight .si { color: #D5FF80 } /* Literal.String.Interpol */ .highlight .sx { color: #D5FF80 } /* Literal.String.Other */ .highlight .sr { color: #95E6CB } /* Literal.String.Regex */ .highlight .s1 { color: #D5FF80 } /* Literal.String.Single */ .highlight .ss { color: #D5FF80 } /* Literal.String.Symbol */ .highlight .bp { color: #F28779 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #FFD173 } /* Name.Function.Magic */ .highlight .vi { color: #FFCC66 } /* Name.Variable.Instance */ .highlight .vm { color: #5CCFE6; font-style: italic } /* Name.Variable.Magic */ .highlight .il { color: #DFBFFF } /* Literal.Number.Integer.Long */
Name Description
:quit, :q Close the current view.
:quit!, :q! Force close the current view, ignoring unsaved changes.
:open, :o Open a file from disk into the current view.
:buffer-close, :bc, :bclose Close the current buffer.
:buffer-close!, :bc!, :bclose! Close the current buffer forcefully, ignoring unsaved changes.
:buffer-close-others, :bco, :bcloseother Close all buffers but the currently focused one.
:buffer-close-others!, :bco!, :bcloseother! Force close all buffers but the currently focused one.
:buffer-close-all, :bca, :bcloseall Close all buffers without quitting.
:buffer-close-all!, :bca!, :bcloseall! Force close all buffers ignoring unsaved changes without quitting.
:buffer-next, :bn, :bnext Goto next buffer.
:buffer-previous, :bp, :bprev Goto previous buffer.
:write, :w Write changes to disk. Accepts an optional path (:write some/path.txt)
:write!, :w! Force write changes to disk creating necessary subdirectories. Accepts an optional path (:write! some/path.txt)
:write-buffer-close, :wbc Write changes to disk and closes the buffer. Accepts an optional path (:write-buffer-close some/path.txt)
:write-buffer-close!, :wbc! Force write changes to disk creating necessary subdirectories and closes the buffer. Accepts an optional path (:write-buffer-close! some/path.txt)
:new, :n Create a new scratch buffer.
:format, :fmt Format the file using the LSP formatter.
:indent-style Set the indentation style for editing. ('t' for tabs or 1-8 for number of spaces.)
:line-ending Set the document's default line ending. Options: crlf, lf.
:earlier, :ear Jump back to an earlier point in edit history. Accepts a number of steps or a time span.
:later, :lat Jump to a later point in edit history. Accepts a number of steps or a time span.
:write-quit, :wq, :x Write changes to disk and close the current view. Accepts an optional path (:wq some/path.txt)
:write-quit!, :wq!, :x! Write changes to disk and close the current view forcefully. Accepts an optional path (:wq! some/path.txt)
:write-all, :wa Write changes from all buffers to disk.
:write-quit-all, :wqa, :xa Write changes from all buffers to disk and close all views.
:write-quit-all!, :wqa!, :xa! Write changes from all buffers to disk and close all views forcefully (ignoring unsaved changes).
:quit-all, :qa Close all views.
:quit-all!, :qa! Force close all views ignoring unsaved changes.
:cquit, :cq Quit with exit code (default 1). Accepts an optional integer exit code (:cq 2).
:cquit!, :cq! Force quit with exit code (default 1) ignoring unsaved changes. Accepts an optional integer exit code (:cq! 2).
:theme Change the editor theme (show current theme if no name specified).
:clipboard-yank Yank main selection into system clipboard.
:clipboard-yank-join Yank joined selections into system clipboard. A separator can be provided as first argument. Default value is newline.
:primary-clipboard-yank Yank main selection into system primary clipboard.
:primary-clipboard-yank-join Yank joined selections into system primary clipboard. A separator can be provided as first argument. Default value is newline.
:clipboard-paste-after Paste system clipboard after selections.
:clipboard-paste-before Paste system clipboard before selections.
:clipboard-paste-replace Replace selections with content of system clipboard.
:primary-clipboard-paste-after Paste primary clipboard after selections.
:primary-clipboard-paste-before Paste primary clipboard before selections.
:primary-clipboard-paste-replace Replace selections with content of system primary clipboard.
:show-clipboard-provider Show clipboard provider name in status bar.
:change-current-directory, :cd Change the current working directory.
:show-directory, :pwd Show the current working directory.
:encoding Set encoding. Based on https://encoding.spec.whatwg.org.
:character-info, :char Get info about the character under the primary cursor.
:reload Discard changes and reload from the source file.
:reload-all Discard changes and reload all documents from the source files.
:update, :u Write changes only if the file has been modified.
:lsp-workspace-command Open workspace command picker
:lsp-restart Restarts the language servers used by the current doc
:lsp-stop Stops the language servers that are used by the current doc
:tree-sitter-scopes Display tree sitter scopes, primarily for theming and development.
:debug-start, :dbg Start a debug session from a given template with given parameters.
:debug-remote, :dbg-tcp Connect to a debug adapter by TCP address and start a debugging session from a given template with given parameters.
:debug-eval Evaluate expression in current debug context.
:vsplit, :vs Open the file in a vertical split.
:vsplit-new, :vnew Open a scratch buffer in a vertical split.
:hsplit, :hs, :sp Open the file in a horizontal split.
:hsplit-new, :hnew Open a scratch buffer in a horizontal split.
:tutor Open the tutorial.
:goto, :g Goto line number.
:set-language, :lang Set the language of current buffer (show current language if no value specified).
:set-option, :set Set a config option at runtime.
For example to disable smart case search, use :set search.smart-case false.
:toggle-option, :toggle Toggle a boolean config option at runtime.
For example to toggle smart case search, use :toggle search.smart-case.
:get-option, :get Get the current value of a config option.
:sort Sort ranges in selection.
:rsort Sort ranges in selection in reverse order.
:reflow Hard-wrap the current selection of lines to a given width.
:tree-sitter-subtree, :ts-subtree Display tree sitter subtree under cursor, primarily for debugging queries.
:config-reload Refresh user config.
:config-open Open the user config.toml file.
:config-open-workspace Open the workspace config.toml file.
:log-open Open the helix log file.
:insert-output Run shell command, inserting output before each selection.
:append-output Run shell command, appending output after each selection.
:pipe Pipe each selection to the shell command.
:pipe-to Pipe each selection to the shell command, ignoring output.
:run-shell-command, :sh Run a shell command
:reset-diff-change, :diffget, :diffg Reset the diff change at the cursor position.
:clear-register Clear given register. If no argument is provided, clear all registers.