Skip to content

Commit

Permalink
Rename :character to :character-info
Browse files Browse the repository at this point in the history
  • Loading branch information
wetheredge committed Oct 4, 2022
1 parent 0f4236b commit 4e0f995
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion book/src/generated/typable-cmd.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down
6 changes: 3 additions & 3 deletions helix-term/src/commands/typed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,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<str>],
event: PromptEvent,
Expand Down Expand Up @@ -2029,10 +2029,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 {
Expand Down

0 comments on commit 4e0f995

Please sign in to comment.