Skip to content

Commit

Permalink
Small fix on keybindings (#33)
Browse files Browse the repository at this point in the history
* remove c a mapping, it's built-in vim binding

* better terminal navigation

* comment c a

* comment c a
  • Loading branch information
Naadiyaar authored Sep 4, 2024
1 parent 80da1ef commit 0cb405d
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,14 @@ Update your keymap.json file with the following key bindings:
},
},
// Code Action
{
"context": "Editor && vim_operator == c",
"bindings": {
"c": "vim::CurrentLine",
"a": "editor::ToggleCodeActions", // zed specific
},
},
// comment due to conflict with built-in vim command
// {
// "context": "Editor && vim_operator == c",
// "bindings": {
// "c": "vim::CurrentLine",
// "a": "editor::ToggleCodeActions", // zed specific
// },
// },
// Toggle terminal
{
"context": "Workspace",
Expand All @@ -319,7 +320,12 @@ Update your keymap.json file with the following key bindings:
},
{
"context": "Terminal",
"bindings": {},
"bindings": {
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"]
},
},
// File panel (netrw)
{
Expand Down

0 comments on commit 0cb405d

Please sign in to comment.