Quality of life shortcuts for code actions

Conrad Irwin created

Change summary

assets/keymaps/vim.json  | 5 ++++-
crates/vim/src/normal.rs | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)

Detailed changes

assets/keymaps/vim.json 🔗

@@ -111,6 +111,8 @@
       "g shift-t": "pane::ActivatePrevItem",
       "g d": "editor::GoToDefinition",
       "g shift-d": "editor::GoToTypeDefinition",
+      "g .": "editor::ToggleCodeActions", // zed specific
+      "g shift-a": "editor::FindAllReferences", // zed specific
       "g *": [
         "vim::MoveToNext",
         {
@@ -321,7 +323,8 @@
   {
     "context": "Editor && vim_operator == c",
     "bindings": {
-      "c": "vim::CurrentLine"
+      "c": "vim::CurrentLine",
+      "d": "editor::Rename" // zed specific
     }
   },
   {

crates/vim/src/normal.rs 🔗

@@ -441,7 +441,7 @@ mod test {
     use indoc::indoc;
 
     use crate::{
-        state::Mode::{self, *},
+        state::Mode::{self},
         test::{ExemptionFeatures, NeovimBackedTestContext},
     };