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| `:buffer-close-others`, `:bco`, `:bcloseother` | Close all buffers but the currently focused one. |
9| `:buffer-close-others!`, `:bco!`, `:bcloseother!` | Close all buffers but the currently focused one. |
10| `:buffer-close-all`, `:bca`, `:bcloseall` | Close all buffers, without quiting. |
11| `:buffer-close-all!`, `:bca!`, `:bcloseall!` | Close all buffers forcefully (ignoring unsaved changes), without quiting. |
12| `:write`, `:w` | Write changes to disk. Accepts an optional path (:write some/path.txt) |
13| `:new`, `:n` | Create a new scratch buffer. |
14| `:format`, `:fmt` | Format the file using the LSP formatter. |
15| `:indent-style` | Set the indentation style for editing. ('t' for tabs or 1-8 for number of spaces.) |
16| `:line-ending` | Set the document's default line ending. Options: crlf, lf, cr, ff, nel. |
17| `:earlier`, `:ear` | Jump back to an earlier point in edit history. Accepts a number of steps or a time span. |
18| `:later`, `:lat` | Jump to a later point in edit history. Accepts a number of steps or a time span. |
19| `:write-quit`, `:wq`, `:x` | Write changes to disk and close the current view. Accepts an optional path (:wq some/path.txt) |
20| `:write-quit!`, `:wq!`, `:x!` | Write changes to disk and close the current view forcefully. Accepts an optional path (:wq! some/path.txt) |
21| `:write-all`, `:wa` | Write changes from all views to disk. |
22| `:write-quit-all`, `:wqa`, `:xa` | Write changes from all views to disk and close all views. |
23| `:write-quit-all!`, `:wqa!`, `:xa!` | Write changes from all views to disk and close all views forcefully (ignoring unsaved changes). |
24| `:quit-all`, `:qa` | Close all views. |
25| `:quit-all!`, `:qa!` | Close all views forcefully (ignoring unsaved changes). |
26| `:cquit`, `:cq` | Quit with exit code (default 1). Accepts an optional integer exit code (:cq 2). |
27| `:cquit!`, `:cq!` | Quit with exit code (default 1) forcefully (ignoring unsaved changes). Accepts an optional integer exit code (:cq! 2). |
28| `:theme` | Change the editor theme. |
29| `:clipboard-yank` | Yank main selection into system clipboard. |
30| `:clipboard-yank-join` | Yank joined selections into system clipboard. A separator can be provided as first argument. Default value is newline. |
31| `:primary-clipboard-yank` | Yank main selection into system primary clipboard. |
32| `:primary-clipboard-yank-join` | Yank joined selections into system primary clipboard. A separator can be provided as first argument. Default value is newline. |
33| `:clipboard-paste-after` | Paste system clipboard after selections. |
34| `:clipboard-paste-before` | Paste system clipboard before selections. |
35| `:clipboard-paste-replace` | Replace selections with content of system clipboard. |
36| `:primary-clipboard-paste-after` | Paste primary clipboard after selections. |
37| `:primary-clipboard-paste-before` | Paste primary clipboard before selections. |
38| `:primary-clipboard-paste-replace` | Replace selections with content of system primary clipboard. |
39| `:show-clipboard-provider` | Show clipboard provider name in status bar. |
40| `:change-current-directory`, `:cd` | Change the current working directory. |
41| `:show-directory`, `:pwd` | Show the current working directory. |
42| `:encoding` | Set encoding based on `https://encoding.spec.whatwg.org` |
43| `:reload` | Discard changes and reload from the source file. |
44| `:tree-sitter-scopes` | Display tree sitter scopes, primarily for theming and development. |
45| `:debug-start`, `:dbg` | Start a debug session from a given template with given parameters. |
46| `:debug-remote`, `:dbg-tcp` | Connect to a debug adapter by TCP address and start a debugging session from a given template with given parameters. |
47| `:debug-eval` | Evaluate expression in current debug context. |
48| `:vsplit`, `:vs` | Open the file in a vertical split. |
49| `:hsplit`, `:hs`, `:sp` | Open the file in a horizontal split. |
50| `:tutor` | Open the tutorial. |
51| `:goto`, `:g` | Go to line number. |
52| `:set-option`, `:set` | Set a config option at runtime |
53| `:sort` | Sort ranges in selection. |
54| `:rsort` | Sort ranges in selection in reverse order. |
55| `:tree-sitter-subtree`, `:ts-subtree` | Display tree sitter subtree under cursor, primarily for debugging queries. |
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list