@@ -323,6 +323,8 @@
"ctrl-t": "vim::Indent",
"ctrl-d": "vim::Outdent",
"ctrl-k": ["vim::PushOperator", { "Digraph": {} }],
+ "ctrl-p": "editor::ShowCompletions",
+ "ctrl-n": "editor::ShowCompletions",
"ctrl-r": ["vim::PushOperator", "Register"]
}
},
@@ -394,7 +396,9 @@
"context": "vim_operator == d",
"bindings": {
"d": "vim::CurrentLine",
- "s": ["vim::PushOperator", "DeleteSurrounds"]
+ "s": ["vim::PushOperator", "DeleteSurrounds"],
+ "o": "editor::ToggleHunkDiff", // "d o"
+ "p": "editor::RevertSelectedHunks" // "d p"
}
},
{
@@ -586,6 +586,8 @@ fn generate_commands(_: &AppContext) -> Vec<VimCommand> {
VimCommand::new(("lp", "revious"), editor::actions::GoToPrevDiagnostic).count(),
VimCommand::new(("lN", "ext"), editor::actions::GoToPrevDiagnostic).count(),
VimCommand::new(("j", "oin"), JoinLines).range(),
+ VimCommand::new(("dif", "fupdate"), editor::actions::ToggleHunkDiff).range(),
+ VimCommand::new(("rev", "ert"), editor::actions::RevertSelectedHunks).range(),
VimCommand::new(("d", "elete"), VisualDeleteLine).range(),
VimCommand::new(("y", "ank"), VisualYankLine).range(),
VimCommand::new(("sor", "t"), SortLinesCaseSensitive).range(),