Compare commits

...

3 Commits

Author SHA1 Message Date
James Rogers 4130b162a7
Update docs link to Commands.md in Remapping.md (#13284) 2025-04-07 11:08:09 -05:00
Jason Fuchs 46f7cdb5a9
feat: add ! alias for sh and | for pipe (#13263) 2025-04-08 01:00:45 +09:00
Mykyta 9cfb8afa99
Added: missing highlighting to `queries/_typescript` (#13250)
* Added: missing highlighting
* moved: delete, typeof, instanceof, void - from keywords to keyword.operator
2025-04-07 10:00:03 -05:00
5 changed files with 21 additions and 9 deletions

View File

@ -78,9 +78,9 @@
| `:log-open` | Open the helix log file. |
| `:insert-output` | Run shell command, inserting output before 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. |
| `: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. |
| `:clear-register` | Clear given register. If no argument is provided, clear all registers. |
| `:redraw` | Clear and re-render the whole UI |

View File

@ -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)
at the invocation of `static_commands!` macro.
* 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
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

View File

@ -3450,7 +3450,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
},
TypableCommand {
name: "pipe",
aliases: &[],
aliases: &["|"],
doc: "Pipe each selection to the shell command.",
fun: pipe,
completer: SHELL_COMPLETER,
@ -3466,7 +3466,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
},
TypableCommand {
name: "run-shell-command",
aliases: &["sh"],
aliases: &["sh", "!"],
doc: "Run a shell command",
fun: run_shell_command,
completer: SHELL_COMPLETER,

View File

@ -64,6 +64,10 @@
(array_pattern
(identifier) @variable.parameter))
(public_field_definition) @punctuation.special
(this_type) @variable.builtin
(type_predicate) @keyword.operator
; Punctuation
; -----------
@ -82,6 +86,7 @@
[
"abstract"
"declare"
"module"
"export"
"infer"
"implements"
@ -127,9 +132,16 @@
">"
] @punctuation.bracket)
(omitting_type_annotation) @punctuation.special
(opting_type_annotation) @punctuation.special
; Literals
; --------
[
(template_literal_type)
] @string
(import_require_clause
(identifier) "="
("require") @keyword)

View File

@ -74,16 +74,12 @@
[
"async"
"debugger"
"delete"
"extends"
"from"
"get"
"new"
"set"
"target"
"typeof"
"instanceof"
"void"
"with"
] @keyword
@ -91,6 +87,10 @@
"of"
"as"
"in"
"delete"
"typeof"
"instanceof"
"void"
] @keyword.operator
[