vim: ! support (#23169)

Closes #22885
Closes #12565 

This doesn't yet add history in the command palette, which is painfully
missing.

Release Notes:

- vim: Added `:!`, `:<range>!` and `:r!` support
- vim: Added `!` operator in normal/visual mode
This commit is contained in:
Conrad Irwin 2025-01-16 21:19:15 -07:00 committed by GitHub
parent 21e7765a48
commit f94efb5008
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 452 additions and 12 deletions

View file

@ -96,6 +96,7 @@ pub enum Operator {
Outdent,
AutoIndent,
Rewrap,
ShellCommand,
Lowercase,
Uppercase,
OppositeCase,
@ -495,6 +496,7 @@ impl Operator {
Operator::Jump { line: false } => "`",
Operator::Indent => ">",
Operator::AutoIndent => "eq",
Operator::ShellCommand => "sh",
Operator::Rewrap => "gq",
Operator::Outdent => "<",
Operator::Uppercase => "gU",
@ -516,6 +518,7 @@ impl Operator {
prefix: Some(prefix),
} => format!("^V{prefix}"),
Operator::AutoIndent => "=".to_string(),
Operator::ShellCommand => "=".to_string(),
_ => self.id().to_string(),
}
}
@ -544,6 +547,7 @@ impl Operator {
| Operator::Indent
| Operator::Outdent
| Operator::AutoIndent
| Operator::ShellCommand
| Operator::Lowercase
| Operator::Uppercase
| Operator::Object { .. }