on 751da01 help sign in
helix/book/src/generated/typable-cmd.md
83 lines 7.1 kB history raw
1| Name | Description |
2| --- | --- |
3| `:quit`, `:q` | Close the current view. |
4| `:quit!`, `:q!` | Force close the current view, ignoring unsaved changes. |
5| `:open`, `:o` | Open a file from disk into the current view. |
6| `:buffer-close`, `:bc`, `:bclose` | Close the current buffer. |
7| `:buffer-close!`, `:bc!`, `:bclose!` | Close the current buffer forcefully, ignoring unsaved changes. |
8| `:buffer-close-others`, `:bco`, `:bcloseother` | Close all buffers but the currently focused one. |
9| `:buffer-close-others!`, `:bco!`, `:bcloseother!` | Force close all buffers but the currently focused one. |
10| `:buffer-close-all`, `:bca`, `:bcloseall` | Close all buffers without quitting. |
11| `:buffer-close-all!`, `:bca!`, `:bcloseall!` | Force close all buffers ignoring unsaved changes without quitting. |
12| `:buffer-next`, `:bn`, `:bnext` | Goto next buffer. |
13| `:buffer-previous`, `:bp`, `:bprev` | Goto previous buffer. |
14| `:write`, `:w` | Write changes to disk. Accepts an optional path (:write some/path.txt) |
15| `:write!`, `:w!` | Force write changes to disk creating necessary subdirectories. Accepts an optional path (:write! some/path.txt) |
16| `:write-buffer-close`, `:wbc` | Write changes to disk and closes the buffer. Accepts an optional path (:write-buffer-close some/path.txt) |
17| `: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) |
18| `:new`, `:n` | Create a new scratch buffer. |
19| `:format`, `:fmt` | Format the file using the LSP formatter. |
20| `:indent-style` | Set the indentation style for editing. ('t' for tabs or 1-8 for number of spaces.) |
21| `:line-ending` | Set the document's default line ending. Options: crlf, lf. |
22| `:earlier`, `:ear` | Jump back to an earlier point in edit history. Accepts a number of steps or a time span. |
23| `:later`, `:lat` | Jump to a later point in edit history. Accepts a number of steps or a time span. |
24| `:write-quit`, `:wq`, `:x` | Write changes to disk and close the current view. Accepts an optional path (:wq some/path.txt) |
25| `:write-quit!`, `:wq!`, `:x!` | Write changes to disk and close the current view forcefully. Accepts an optional path (:wq! some/path.txt) |
26| `:write-all`, `:wa` | Write changes from all buffers to disk. |
27| `:write-quit-all`, `:wqa`, `:xa` | Write changes from all buffers to disk and close all views. |
28| `:write-quit-all!`, `:wqa!`, `:xa!` | Write changes from all buffers to disk and close all views forcefully (ignoring unsaved changes). |
29| `:quit-all`, `:qa` | Close all views. |
30| `:quit-all!`, `:qa!` | Force close all views ignoring unsaved changes. |
31| `:cquit`, `:cq` | Quit with exit code (default 1). Accepts an optional integer exit code (:cq 2). |
32| `:cquit!`, `:cq!` | Force quit with exit code (default 1) ignoring unsaved changes. Accepts an optional integer exit code (:cq! 2). |
33| `:theme` | Change the editor theme (show current theme if no name specified). |
34| `:clipboard-yank` | Yank main selection into system clipboard. |
35| `:clipboard-yank-join` | Yank joined selections into system clipboard. A separator can be provided as first argument. Default value is newline. |
36| `:primary-clipboard-yank` | Yank main selection into system primary clipboard. |
37| `:primary-clipboard-yank-join` | Yank joined selections into system primary clipboard. A separator can be provided as first argument. Default value is newline. |
38| `:clipboard-paste-after` | Paste system clipboard after selections. |
39| `:clipboard-paste-before` | Paste system clipboard before selections. |
40| `:clipboard-paste-replace` | Replace selections with content of system clipboard. |
41| `:primary-clipboard-paste-after` | Paste primary clipboard after selections. |
42| `:primary-clipboard-paste-before` | Paste primary clipboard before selections. |
43| `:primary-clipboard-paste-replace` | Replace selections with content of system primary clipboard. |
44| `:show-clipboard-provider` | Show clipboard provider name in status bar. |
45| `:change-current-directory`, `:cd` | Change the current working directory. |
46| `:show-directory`, `:pwd` | Show the current working directory. |
47| `:encoding` | Set encoding. Based on `https://encoding.spec.whatwg.org`. |
48| `:character-info`, `:char` | Get info about the character under the primary cursor. |
49| `:reload` | Discard changes and reload from the source file. |
50| `:reload-all` | Discard changes and reload all documents from the source files. |
51| `:update`, `:u` | Write changes only if the file has been modified. |
52| `:lsp-workspace-command` | Open workspace command picker |
53| `:lsp-restart` | Restarts the language servers used by the current doc |
54| `:lsp-stop` | Stops the language servers that are used by the current doc |
55| `:tree-sitter-scopes` | Display tree sitter scopes, primarily for theming and development. |
56| `:debug-start`, `:dbg` | Start a debug session from a given template with given parameters. |
57| `:debug-remote`, `:dbg-tcp` | Connect to a debug adapter by TCP address and start a debugging session from a given template with given parameters. |
58| `:debug-eval` | Evaluate expression in current debug context. |
59| `:vsplit`, `:vs` | Open the file in a vertical split. |
60| `:vsplit-new`, `:vnew` | Open a scratch buffer in a vertical split. |
61| `:hsplit`, `:hs`, `:sp` | Open the file in a horizontal split. |
62| `:hsplit-new`, `:hnew` | Open a scratch buffer in a horizontal split. |
63| `:tutor` | Open the tutorial. |
64| `:goto`, `:g` | Goto line number. |
65| `:set-language`, `:lang` | Set the language of current buffer (show current language if no value specified). |
66| `:set-option`, `:set` | Set a config option at runtime.<br>For example to disable smart case search, use `:set search.smart-case false`. |
67| `:toggle-option`, `:toggle` | Toggle a boolean config option at runtime.<br>For example to toggle smart case search, use `:toggle search.smart-case`. |
68| `:get-option`, `:get` | Get the current value of a config option. |
69| `:sort` | Sort ranges in selection. |
70| `:rsort` | Sort ranges in selection in reverse order. |
71| `:reflow` | Hard-wrap the current selection of lines to a given width. |
72| `:tree-sitter-subtree`, `:ts-subtree` | Display tree sitter subtree under cursor, primarily for debugging queries. |
73| `:config-reload` | Refresh user config. |
74| `:config-open` | Open the user config.toml file. |
75| `:config-open-workspace` | Open the workspace config.toml file. |
76| `:log-open` | Open the helix log file. |
77| `:insert-output` | Run shell command, inserting output before each selection. |
78| `:append-output` | Run shell command, appending output after each selection. |
79| `:pipe` | Pipe each selection to the shell command. |
80| `:pipe-to` | Pipe each selection to the shell command, ignoring output. |
81| `:run-shell-command`, `:sh` | Run a shell command |
82| `:reset-diff-change`, `:diffget`, `:diffg` | Reset the diff change at the cursor position. |
83| `:clear-register` | Clear given register. If no argument is provided, clear all registers. |