Skip to content

Commit 76c8c97

Browse files
committed
Shorten typed command descriptions
1 parent f65ceb8 commit 76c8c97

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

book/src/generated/typable-cmd.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
| Name | Description |
22
| --- | --- |
33
| `:quit`, `:q` | Close the current view. |
4-
| `:quit!`, `:q!` | Close the current view forcefully (ignoring unsaved changes). |
4+
| `:quit!`, `:q!` | Force close the current view, ignoring unsaved changes. |
55
| `:open`, `:o` | Open a file from disk into the current view. |
66
| `:buffer-close`, `:bc`, `:bclose` | Close the current buffer. |
7-
| `:buffer-close!`, `:bc!`, `:bclose!` | Close the current buffer forcefully (ignoring unsaved changes). |
7+
| `:buffer-close!`, `:bc!`, `:bclose!` | Close the current buffer forcefully, ignoring unsaved changes. |
88
| `: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 quitting. |
11-
| `:buffer-close-all!`, `:bca!`, `:bcloseall!` | Close all buffers forcefully (ignoring unsaved changes), without quitting. |
12-
| `:buffer-next`, `:bn`, `:bnext` | Go to next buffer. |
13-
| `:buffer-previous`, `:bp`, `:bprev` | Go to previous buffer. |
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. |
1414
| `:write`, `:w` | Write changes to disk. Accepts an optional path (:write some/path.txt) |
15-
| `:write!`, `:w!` | Write changes to disk forcefully (creating necessary subdirectories). 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) |
1616
| `:new`, `:n` | Create a new scratch buffer. |
1717
| `:format`, `:fmt` | Format the file using the LSP formatter. |
1818
| `:indent-style` | Set the indentation style for editing. ('t' for tabs or 1-8 for number of spaces.) |
@@ -25,9 +25,9 @@
2525
| `:write-quit-all`, `:wqa`, `:xa` | Write changes from all buffers to disk and close all views. |
2626
| `:write-quit-all!`, `:wqa!`, `:xa!` | Write changes from all buffers to disk and close all views forcefully (ignoring unsaved changes). |
2727
| `:quit-all`, `:qa` | Close all views. |
28-
| `:quit-all!`, `:qa!` | Close all views forcefully (ignoring unsaved changes). |
28+
| `:quit-all!`, `:qa!` | Force close all views ignoring unsaved changes. |
2929
| `:cquit`, `:cq` | Quit with exit code (default 1). Accepts an optional integer exit code (:cq 2). |
30-
| `:cquit!`, `:cq!` | Quit with exit code (default 1) forcefully (ignoring unsaved changes). Accepts an optional integer exit code (:cq! 2). |
30+
| `:cquit!`, `:cq!` | Force quit with exit code (default 1) ignoring unsaved changes. Accepts an optional integer exit code (:cq! 2). |
3131
| `:theme` | Change the editor theme. |
3232
| `:clipboard-yank` | Yank main selection into system clipboard. |
3333
| `:clipboard-yank-join` | Yank joined selections into system clipboard. A separator can be provided as first argument. Default value is newline. |
@@ -42,7 +42,7 @@
4242
| `:show-clipboard-provider` | Show clipboard provider name in status bar. |
4343
| `:change-current-directory`, `:cd` | Change the current working directory. |
4444
| `:show-directory`, `:pwd` | Show the current working directory. |
45-
| `:encoding` | Set encoding based on `https://encoding.spec.whatwg.org` |
45+
| `:encoding` | Set encoding. Based on `https://encoding.spec.whatwg.org`. |
4646
| `:reload` | Discard changes and reload from the source file. |
4747
| `:tree-sitter-scopes` | Display tree sitter scopes, primarily for theming and development. |
4848
| `:debug-start`, `:dbg` | Start a debug session from a given template with given parameters. |
@@ -53,16 +53,16 @@
5353
| `:hsplit`, `:hs`, `:sp` | Open the file in a horizontal split. |
5454
| `:hsplit-new`, `:hnew` | Open a scratch buffer in a horizontal split. |
5555
| `:tutor` | Open the tutorial. |
56-
| `:goto`, `:g` | Go to line number. |
56+
| `:goto`, `:g` | Goto line number. |
5757
| `:set-language`, `:lang` | Set the language of current buffer. |
5858
| `:set-option`, `:set` | Set a config option at runtime.<br>For example to disable smart case search, use `:set search.smart-case false`. |
5959
| `:get-option`, `:get` | Get the current value of a config option. |
6060
| `:sort` | Sort ranges in selection. |
6161
| `:rsort` | Sort ranges in selection in reverse order. |
6262
| `:reflow` | Hard-wrap the current selection of lines to a given width. |
6363
| `:tree-sitter-subtree`, `:ts-subtree` | Display tree sitter subtree under cursor, primarily for debugging queries. |
64-
| `:config-reload` | Refreshes helix's config. |
65-
| `:config-open` | Open the helix config.toml file. |
64+
| `:config-reload` | Refresh user config. |
65+
| `:config-open` | Open the user config.toml file. |
6666
| `:log-open` | Open the helix log file. |
6767
| `:insert-output` | Run shell command, inserting output after each selection. |
6868
| `:append-output` | Run shell command, appending output after each selection. |

helix-term/src/commands/typed.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
15281528
TypableCommand {
15291529
name: "quit!",
15301530
aliases: &["q!"],
1531-
doc: "Close the current view forcefully (ignoring unsaved changes).",
1531+
doc: "Force close the current view, ignoring unsaved changes.",
15321532
fun: force_quit,
15331533
completer: None,
15341534
},
@@ -1549,7 +1549,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
15491549
TypableCommand {
15501550
name: "buffer-close!",
15511551
aliases: &["bc!", "bclose!"],
1552-
doc: "Close the current buffer forcefully (ignoring unsaved changes).",
1552+
doc: "Close the current buffer forcefully, ignoring unsaved changes.",
15531553
fun: force_buffer_close,
15541554
completer: Some(completers::buffer),
15551555
},
@@ -1563,35 +1563,35 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
15631563
TypableCommand {
15641564
name: "buffer-close-others!",
15651565
aliases: &["bco!", "bcloseother!"],
1566-
doc: "Close all buffers but the currently focused one.",
1566+
doc: "Force close all buffers but the currently focused one.",
15671567
fun: force_buffer_close_others,
15681568
completer: None,
15691569
},
15701570
TypableCommand {
15711571
name: "buffer-close-all",
15721572
aliases: &["bca", "bcloseall"],
1573-
doc: "Close all buffers, without quitting.",
1573+
doc: "Close all buffers without quitting.",
15741574
fun: buffer_close_all,
15751575
completer: None,
15761576
},
15771577
TypableCommand {
15781578
name: "buffer-close-all!",
15791579
aliases: &["bca!", "bcloseall!"],
1580-
doc: "Close all buffers forcefully (ignoring unsaved changes), without quitting.",
1580+
doc: "Force close all buffers ignoring unsaved changes without quitting.",
15811581
fun: force_buffer_close_all,
15821582
completer: None,
15831583
},
15841584
TypableCommand {
15851585
name: "buffer-next",
15861586
aliases: &["bn", "bnext"],
1587-
doc: "Go to next buffer.",
1587+
doc: "Goto next buffer.",
15881588
fun: buffer_next,
15891589
completer: None,
15901590
},
15911591
TypableCommand {
15921592
name: "buffer-previous",
15931593
aliases: &["bp", "bprev"],
1594-
doc: "Go to previous buffer.",
1594+
doc: "Goto previous buffer.",
15951595
fun: buffer_previous,
15961596
completer: None,
15971597
},
@@ -1605,7 +1605,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
16051605
TypableCommand {
16061606
name: "write!",
16071607
aliases: &["w!"],
1608-
doc: "Write changes to disk forcefully (creating necessary subdirectories). Accepts an optional path (:write some/path.txt)",
1608+
doc: "Force write changes to disk creating necessary subdirectories. Accepts an optional path (:write some/path.txt)",
16091609
fun: force_write,
16101610
completer: Some(completers::filename),
16111611
},
@@ -1699,7 +1699,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
16991699
TypableCommand {
17001700
name: "quit-all!",
17011701
aliases: &["qa!"],
1702-
doc: "Close all views forcefully (ignoring unsaved changes).",
1702+
doc: "Force close all views ignoring unsaved changes.",
17031703
fun: force_quit_all,
17041704
completer: None,
17051705
},
@@ -1713,7 +1713,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
17131713
TypableCommand {
17141714
name: "cquit!",
17151715
aliases: &["cq!"],
1716-
doc: "Quit with exit code (default 1) forcefully (ignoring unsaved changes). Accepts an optional integer exit code (:cq! 2).",
1716+
doc: "Force quit with exit code (default 1) ignoring unsaved changes. Accepts an optional integer exit code (:cq! 2).",
17171717
fun: force_cquit,
17181718
completer: None,
17191719
},
@@ -1818,7 +1818,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
18181818
TypableCommand {
18191819
name: "encoding",
18201820
aliases: &[],
1821-
doc: "Set encoding based on `https://encoding.spec.whatwg.org`",
1821+
doc: "Set encoding. Based on `https://encoding.spec.whatwg.org`.",
18221822
fun: set_encoding,
18231823
completer: None,
18241824
},
@@ -1895,7 +1895,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
18951895
TypableCommand {
18961896
name: "goto",
18971897
aliases: &["g"],
1898-
doc: "Go to line number.",
1898+
doc: "Goto line number.",
18991899
fun: goto_line_number,
19001900
completer: None,
19011901
},
@@ -1951,14 +1951,14 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
19511951
TypableCommand {
19521952
name: "config-reload",
19531953
aliases: &[],
1954-
doc: "Refreshes helix's config.",
1954+
doc: "Refresh user config.",
19551955
fun: refresh_config,
19561956
completer: None,
19571957
},
19581958
TypableCommand {
19591959
name: "config-open",
19601960
aliases: &[],
1961-
doc: "Open the helix config.toml file.",
1961+
doc: "Open the user config.toml file.",
19621962
fun: open_config,
19631963
completer: None,
19641964
},

0 commit comments

Comments
 (0)