You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/routes/advanced-switchbuf/+page.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,3 +15,7 @@ For instance, with `useopen,newtab`, if the buffer is not found in the current t
15
15
For more advanced use cases, you can write your own `switchbuf` function. It receives 2 arguments: the _current_ window number and the buffer number _to jump to_. It should (optionally) return a window number for the jump's destination window.
16
16
17
17
If a combination of options does not yield a valid window number for the destination (e.g., `useopen` but the buffer is hidden), there's a fallback to create a top-level split.
18
+
19
+
## Force Behavior
20
+
21
+
Sometimes, having a custom `switchbuf` is not enough. In these scenarios, you can override your own setting by using `<C-w><CR>` to bring a list with all available options, affecting only the current jump.
Copy file name to clipboardExpand all lines: docs/src/routes/keymaps/+page.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,8 @@ The help window itself has only 1 mapping: it can be closed with `q`.
44
44
|**Help**|
45
45
|`q`| Close |
46
46
47
+
Additionally, when jumping to a frame or breakpoint you can use `<C-w><CR>` to pick a specific [jump behavior](advanced-switchbuf#).
48
+
47
49
`nvim-dap-view` doesn't define any keybindings outside its own buffers: you have to create your own bindings to call `open`, `close` or `toggle` and other API [functions](api) (or [commands](commands)).
48
50
49
51
[^1]: Read `:help lua-pattern` to learn more. You can also read the full documentation [here](https://www.lua.org/pil/20.2.html).
0 commit comments