diff --git a/book/src/generated/typable-cmd.md b/book/src/generated/typable-cmd.md index 59fc1c323a32b..30c380fc6bce1 100644 --- a/book/src/generated/typable-cmd.md +++ b/book/src/generated/typable-cmd.md @@ -43,7 +43,7 @@ | `: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`, `:char` | Get info about the character under the primary cursor. | +| `:character-info`, `:char` | Get info about the character under the primary cursor. | | `:reload` | Discard changes and reload from the source file. | | `:lsp-restart` | Restarts the Language Server that is in use by the current doc | | `:tree-sitter-scopes` | Display tree sitter scopes, primarily for theming and development. | diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index 38251a4f10323..7cb90d32a5db5 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -970,7 +970,7 @@ fn set_encoding( } /// Shows info about the character under the primary cursor. -fn get_character( +fn get_character_info( cx: &mut compositor::Context, _args: &[Cow], event: PromptEvent, @@ -1982,10 +1982,10 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[ completer: None, }, TypableCommand { - name: "character", + name: "character-info", aliases: &["char"], doc: "Get info about the character under the primary cursor.", - fun: get_character, + fun: get_character_info, completer: None, }, TypableCommand {