on 609f736 help sign in
helix/book/src/generated/typable-cmd.md
47 lines 3.8 kB history raw
1| Name | Description |
2| --- | --- |
3| `:quit`, `:q` | Close the current view. |
4| `:quit!`, `:q!` | Close the current view forcefully (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| `:write`, `:w` | Write changes to disk. Accepts an optional path (:write some/path.txt) |
9| `:new`, `:n` | Create a new scratch buffer. |
10| `:format`, `:fmt` | Format the file using the LSP formatter. |
11| `:indent-style` | Set the indentation style for editing. ('t' for tabs or 1-8 for number of spaces.) |
12| `:line-ending` | Set the document's default line ending. Options: crlf, lf, cr, ff, nel. |
13| `:earlier`, `:ear` | Jump back to an earlier point in edit history. Accepts a number of steps or a time span. |
14| `:later`, `:lat` | Jump to a later point in edit history. Accepts a number of steps or a time span. |
15| `:write-quit`, `:wq`, `:x` | Write changes to disk and close the current view. Accepts an optional path (:wq some/path.txt) |
16| `:write-quit!`, `:wq!`, `:x!` | Write changes to disk and close the current view forcefully. Accepts an optional path (:wq! some/path.txt) |
17| `:write-all`, `:wa` | Write changes from all views to disk. |
18| `:write-quit-all`, `:wqa`, `:xa` | Write changes from all views to disk and close all views. |
19| `:write-quit-all!`, `:wqa!`, `:xa!` | Write changes from all views to disk and close all views forcefully (ignoring unsaved changes). |
20| `:quit-all`, `:qa` | Close all views. |
21| `:quit-all!`, `:qa!` | Close all views forcefully (ignoring unsaved changes). |
22| `:cquit`, `:cq` | Quit with exit code (default 1). Accepts an optional integer exit code (:cq 2). |
23| `:cquit!`, `:cq!` | Quit with exit code (default 1) forcefully (ignoring unsaved changes). Accepts an optional integer exit code (:cq! 2). |
24| `:theme` | Change the editor theme. |
25| `:clipboard-yank` | Yank main selection into system clipboard. |
26| `:clipboard-yank-join` | Yank joined selections into system clipboard. A separator can be provided as first argument. Default value is newline. |
27| `:primary-clipboard-yank` | Yank main selection into system primary clipboard. |
28| `:primary-clipboard-yank-join` | Yank joined selections into system primary clipboard. A separator can be provided as first argument. Default value is newline. |
29| `:clipboard-paste-after` | Paste system clipboard after selections. |
30| `:clipboard-paste-before` | Paste system clipboard before selections. |
31| `:clipboard-paste-replace` | Replace selections with content of system clipboard. |
32| `:primary-clipboard-paste-after` | Paste primary clipboard after selections. |
33| `:primary-clipboard-paste-before` | Paste primary clipboard before selections. |
34| `:primary-clipboard-paste-replace` | Replace selections with content of system primary clipboard. |
35| `:show-clipboard-provider` | Show clipboard provider name in status bar. |
36| `:change-current-directory`, `:cd` | Change the current working directory. |
37| `:show-directory`, `:pwd` | Show the current working directory. |
38| `:encoding` | Set encoding based on `https://encoding.spec.whatwg.org` |
39| `:reload` | Discard changes and reload from the source file. |
40| `:tree-sitter-scopes` | Display tree sitter scopes, primarily for theming and development. |
41| `:vsplit`, `:vs` | Open the file in a vertical split. |
42| `:hsplit`, `:hs`, `:sp` | Open the file in a horizontal split. |
43| `:tutor` | Open the tutorial. |
44| `:goto`, `:g` | Go to line number. |
45| `:set-option`, `:set` | Set a config option at runtime |
46| `:sort` | Sort ranges in selection. |
47| `:rsort` | Sort ranges in selection in reverse order. |