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:
parent
21e7765a48
commit
f94efb5008
8 changed files with 452 additions and 12 deletions
|
@ -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 { .. }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue