vim: Add scroll keybindings for the OutlinePanel (#42438)

Closes #ISSUE

```json
  {
    "context": "OutlinePanel && not_editing",
    "bindings": {
      "enter": "editor::ToggleFocus",
      "/": "menu::Cancel",
      "ctrl-u": "outline_panel::ScrollUp",
      "ctrl-d": "outline_panel::ScrollDown",
      "z t": "outline_panel::ScrollCursorTop",
      "z z": "outline_panel::ScrollCursorCenter",
      "z b": "outline_panel::ScrollCursorBottom"
    }
  },
  {
    "context": "OutlinePanel && editing",
    "bindings": {
      "enter": "menu::Cancel"
    }
  },
```

Release Notes:

- Added scroll keybindings for the OutlinePanel

---------

Co-authored-by: Ben Kunkle <ben@zed.dev>
This commit is contained in:
0x2CA
2025-12-15 23:40:37 +08:00
committed by GitHub
parent 03216c9800
commit 79a8985a8e
5 changed files with 115 additions and 2 deletions

1
Cargo.lock generated
View File

@@ -18138,6 +18138,7 @@ dependencies = [
"menu",
"multi_buffer",
"nvim-rs",
"outline_panel",
"parking_lot",
"perf",
"picker",