Skip to content

Commit

Permalink
Add a section about navigating within multibuffers (zed-industries#14979
Browse files Browse the repository at this point in the history
)

Release Notes:

- N/A
  • Loading branch information
JosephTLyons authored Jul 22, 2024
1 parent a20e92a commit 8f20ea1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/src/multibuffers.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ When in a multibuffer, it is often useful to use multiple cursors to edit every

When you want to edit all matches you can select them by running the `editor: Select All Matches` command (`cmd-shift-l` on macOS, `ctrl-shift-l` on Windows/Linux, or `g a` in Vim mode).

## Navigating to the Source File

While you can easily edit files in a multibuffer, navigating directly to the source file is often beneficial. You can accomplish this by clicking on any of the divider lines between excerpts or by placing your cursor in an excerpt and executing the `editor: open excerpts` command. It’s key to note that if multiple cursors are being used, the command will open the source file positioned under each cursor within the multibuffer.

Additionally, if you prefer to use the mouse and would like to double-click on an excerpt to open it, you can enable this functionality with the setting: `"double_click_in_multibuffer": "open"`.

## Project search

To start a search run the `pane: Toggle Search` command (`cmd-shift-f` on macOS, `ctrl-shift-f` on Windows/Linux, or `g/` in Vim mode). After the search has completed, the results will be shown in a new multibuffer. There will be one excerpt for each matching line across the whole project.
Expand Down

0 comments on commit 8f20ea1

Please sign in to comment.