mirror of https://github.com/helix-editor/helix
Compare commits
3 Commits
29789f2a9f
...
4130b162a7
Author | SHA1 | Date |
---|---|---|
|
4130b162a7 | |
|
46f7cdb5a9 | |
|
9cfb8afa99 |
|
@ -78,9 +78,9 @@
|
||||||
| `:log-open` | Open the helix log file. |
|
| `:log-open` | Open the helix log file. |
|
||||||
| `:insert-output` | Run shell command, inserting output before each selection. |
|
| `:insert-output` | Run shell command, inserting output before each selection. |
|
||||||
| `:append-output` | Run shell command, appending output after each selection. |
|
| `:append-output` | Run shell command, appending output after each selection. |
|
||||||
| `:pipe` | Pipe each selection to the shell command. |
|
| `:pipe`, `:|` | Pipe each selection to the shell command. |
|
||||||
| `:pipe-to` | Pipe each selection to the shell command, ignoring output. |
|
| `:pipe-to` | Pipe each selection to the shell command, ignoring output. |
|
||||||
| `:run-shell-command`, `:sh` | Run a shell command |
|
| `:run-shell-command`, `:sh`, `:!` | Run a shell command |
|
||||||
| `:reset-diff-change`, `:diffget`, `:diffg` | Reset the diff change at the cursor position. |
|
| `:reset-diff-change`, `:diffget`, `:diffg` | Reset the diff change at the cursor position. |
|
||||||
| `:clear-register` | Clear given register. If no argument is provided, clear all registers. |
|
| `:clear-register` | Clear given register. If no argument is provided, clear all registers. |
|
||||||
| `:redraw` | Clear and re-render the whole UI |
|
| `:redraw` | Clear and re-render the whole UI |
|
||||||
|
|
|
@ -12,7 +12,7 @@ There are three kinds of commands that can be used in keymaps:
|
||||||
in [`helix-term/src/commands.rs`](https://github.com/helix-editor/helix/blob/master/helix-term/src/commands.rs)
|
in [`helix-term/src/commands.rs`](https://github.com/helix-editor/helix/blob/master/helix-term/src/commands.rs)
|
||||||
at the invocation of `static_commands!` macro.
|
at the invocation of `static_commands!` macro.
|
||||||
* Typable commands: commands that can be executed from command mode (`:`), for
|
* Typable commands: commands that can be executed from command mode (`:`), for
|
||||||
example `:write!`. See the [Commands](./commands.html) documentation for a
|
example `:write!`. See the [Commands](./commands.md) documentation for a
|
||||||
list of available typeable commands or the `TypableCommandList` declaration in
|
list of available typeable commands or the `TypableCommandList` declaration in
|
||||||
the source code at [`helix-term/src/commands/typed.rs`](https://github.com/helix-editor/helix/blob/master/helix-term/src/commands/typed.rs).
|
the source code at [`helix-term/src/commands/typed.rs`](https://github.com/helix-editor/helix/blob/master/helix-term/src/commands/typed.rs).
|
||||||
* Macros: sequences of keys that are executed in order. These keybindings
|
* Macros: sequences of keys that are executed in order. These keybindings
|
||||||
|
|
|
@ -3450,7 +3450,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
|
||||||
},
|
},
|
||||||
TypableCommand {
|
TypableCommand {
|
||||||
name: "pipe",
|
name: "pipe",
|
||||||
aliases: &[],
|
aliases: &["|"],
|
||||||
doc: "Pipe each selection to the shell command.",
|
doc: "Pipe each selection to the shell command.",
|
||||||
fun: pipe,
|
fun: pipe,
|
||||||
completer: SHELL_COMPLETER,
|
completer: SHELL_COMPLETER,
|
||||||
|
@ -3466,7 +3466,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
|
||||||
},
|
},
|
||||||
TypableCommand {
|
TypableCommand {
|
||||||
name: "run-shell-command",
|
name: "run-shell-command",
|
||||||
aliases: &["sh"],
|
aliases: &["sh", "!"],
|
||||||
doc: "Run a shell command",
|
doc: "Run a shell command",
|
||||||
fun: run_shell_command,
|
fun: run_shell_command,
|
||||||
completer: SHELL_COMPLETER,
|
completer: SHELL_COMPLETER,
|
||||||
|
|
|
@ -64,6 +64,10 @@
|
||||||
(array_pattern
|
(array_pattern
|
||||||
(identifier) @variable.parameter))
|
(identifier) @variable.parameter))
|
||||||
|
|
||||||
|
(public_field_definition) @punctuation.special
|
||||||
|
(this_type) @variable.builtin
|
||||||
|
(type_predicate) @keyword.operator
|
||||||
|
|
||||||
; Punctuation
|
; Punctuation
|
||||||
; -----------
|
; -----------
|
||||||
|
|
||||||
|
@ -82,6 +86,7 @@
|
||||||
[
|
[
|
||||||
"abstract"
|
"abstract"
|
||||||
"declare"
|
"declare"
|
||||||
|
"module"
|
||||||
"export"
|
"export"
|
||||||
"infer"
|
"infer"
|
||||||
"implements"
|
"implements"
|
||||||
|
@ -127,9 +132,16 @@
|
||||||
">"
|
">"
|
||||||
] @punctuation.bracket)
|
] @punctuation.bracket)
|
||||||
|
|
||||||
|
(omitting_type_annotation) @punctuation.special
|
||||||
|
(opting_type_annotation) @punctuation.special
|
||||||
|
|
||||||
; Literals
|
; Literals
|
||||||
; --------
|
; --------
|
||||||
|
|
||||||
[
|
[
|
||||||
(template_literal_type)
|
(template_literal_type)
|
||||||
] @string
|
] @string
|
||||||
|
|
||||||
|
(import_require_clause
|
||||||
|
(identifier) "="
|
||||||
|
("require") @keyword)
|
||||||
|
|
|
@ -74,16 +74,12 @@
|
||||||
[
|
[
|
||||||
"async"
|
"async"
|
||||||
"debugger"
|
"debugger"
|
||||||
"delete"
|
|
||||||
"extends"
|
"extends"
|
||||||
"from"
|
"from"
|
||||||
"get"
|
"get"
|
||||||
"new"
|
"new"
|
||||||
"set"
|
"set"
|
||||||
"target"
|
"target"
|
||||||
"typeof"
|
|
||||||
"instanceof"
|
|
||||||
"void"
|
|
||||||
"with"
|
"with"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
@ -91,6 +87,10 @@
|
||||||
"of"
|
"of"
|
||||||
"as"
|
"as"
|
||||||
"in"
|
"in"
|
||||||
|
"delete"
|
||||||
|
"typeof"
|
||||||
|
"instanceof"
|
||||||
|
"void"
|
||||||
] @keyword.operator
|
] @keyword.operator
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue