Skip to content

Commit

Permalink
Panes/Pane layout.md: Add headings, add sections, add svg icons, chan…
Browse files Browse the repository at this point in the history
…ge wording for consistency, fix typos, backtick all keyboard modifiers for readability, remove content about Sidebars -> Create a link to Sidebars.md
  • Loading branch information
eucalyptus-viminalis committed Feb 8, 2021
1 parent 2b64273 commit c826ea9
Showing 1 changed file with 10 additions and 29 deletions.
39 changes: 10 additions & 29 deletions en/Panes/Pane layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,28 @@ The window a file gets opened in is what we call a "pane". You can have as many

### Open new panes

#### Open links
#### Open links in [[File explorer]], [[Search]], [[Backlinks]], [[Graph view]], etc.

In general, you can click a link to a file while holding Ctrl (on Windows and Linux) or Cmd (on macOS) to open it in a new pane. This includes clicking on files in [[File explorer]], [[Search]] results, [[Backlinks]], [[Graph view]], etc.
In general, you can click a link to a file while holding `Ctrl` (on Windows and Linux) or `Cmd` `` (on macOS) to open it in a new pane.

The only notable exception is in the editor. Because in the editor, a single click edits the link text rather than following it, `Ctrl/Cmd-Click` is used to follow the link. Therefore, you'll need to hold Shift in addition to Ctrl/Cmd in order to open the link in a new pane.
#### Open links in the editor
In the editor, a single click edits the link text rather than following it, `Ctrl/Cmd-Click` is used to follow the link. Therefore, you'll need to hold `Shift` in addition to `Ctrl/Cmd` in order to open the link in a new pane.

#### Split current pane

You can also use the "More options" menu option of a pane to select "Split vertically" or "Split horizontally" to open two copies of that file.
You can also use the commands "Split vertically" or "Split horizontally" to open two duplicate panes of that file. These commands can be accessed via <svg viewBox="0 0 100 100" width="18" height="18" class="vertical-three-dots"><path fill="currentColor" stroke="currentColor" d="M50,6c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S56.6,6,50,6z M50,10c4.4,0,8,3.6,8,8s-3.6,8-8,8s-8-3.6-8-8 S45.6,10,50,10z M50,38c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S56.6,38,50,38z M50,42c4.4,0,8,3.6,8,8s-3.6,8-8,8 s-8-3.6-8-8S45.6,42,50,42z M50,70c-6.6,0-12,5.4-12,12c0,6.6,5.4,12,12,12s12-5.4,12-12C62,75.4,56.6,70,50,70z M50,74 c4.4,0,8,3.6,8,8c0,4.4-3.6,8-8,8s-8-3.6-8-8C42,77.6,45.6,74,50,74z"></path></svg> More options, the [[Command palette]] or using [[Custom hotkeys|custom hotkeys]].

#### Open linked views
#### Open linked panes

Some options in the "More options" menu will also open a new pane that's linked to the current pane, such as "Open backlinks" and "Open local graph".
Some commands such as "Open backlinks" and "Open local graph" will open panes that are linked to the current pane by default. These commands can be accessed via <svg viewBox="0 0 100 100" width="18" height="18" class="vertical-three-dots"><path fill="currentColor" stroke="currentColor" d="M50,6c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S56.6,6,50,6z M50,10c4.4,0,8,3.6,8,8s-3.6,8-8,8s-8-3.6-8-8 S45.6,10,50,10z M50,38c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S56.6,38,50,38z M50,42c4.4,0,8,3.6,8,8s-3.6,8-8,8 s-8-3.6-8-8S45.6,42,50,42z M50,70c-6.6,0-12,5.4-12,12c0,6.6,5.4,12,12,12s12-5.4,12-12C62,75.4,56.6,70,50,70z M50,74 c4.4,0,8,3.6,8,8c0,4.4-3.6,8-8,8s-8-3.6-8-8C42,77.6,45.6,74,50,74z"></path></svg> More options, the [[Command palette]] or using [[Custom hotkeys|custom hotkeys]].

### Rearrange panes

To move a pane, simply drag the pane icon in the top left corner of the pane. As you drag it around, a visual indicator will appear to show where the pane will be placed. Dropping onto each of the four sides of an existing pane creates a horizontal or vertical split, and dropping in the center swaps positions with the target pane.
To move a pane, simply drag the document icon <svg viewBox="0 0 100 100" width="18" height="18" class="document"><path fill="currentColor" stroke="currentColor" d="M14,4v92h72V29.2l-0.6-0.6l-24-24L60.8,4L14,4z M18,8h40v24h24v60H18L18,8z M62,10.9L79.1,28H62V10.9z"></path></svg> in the title bar. As you drag it around, a visual indicator will show where the pane will be placed.

You can also drag panes into the two sidebars. Panes in the sidebar work a bit differently, for more please see the [[Pane layout#Panes in the sidebar]] section below.
Drop the pane onto each of the four sides of an existing pane to create a horizontal or vertical split. Or, drop it in the center to swap positions with the target pane.

### Panes in the sidebar

There are some differences with panes that live in the sidebars.

#### Sidebar panes can share space with tabs

When your drop a pane onto a sidebar pane, a new tab will be created under that sidebar section. Different panes in the same sidebar section can be accessed by clicking on its tab icon.

#### Sidebar panes do not show titles

This reduces clutter, but also means it's best to keep one or two important files like a scratch pad or the daily note for quick access, rather than having a dozen files open.

To see the title of a file that's in the sidebar, hover over its tab icon.

#### Sidebar can be easily collapsed

If there are panes that you only need to look at from time to time, having them in the sidebar makes it really easy to toggle them with a hotkey or command.

#### Toggle editor and preview in sidebar

The hotkey to toggle between editor and preview only works in the main workspace. In the sidebar, you'll need to right click on the tab icon and select "Preview" or "Edit" to toggle between two modes.
You can also drag panes into the two sidebars. Panes in the sidebar work a bit differently. Please see [[Sidebars]] for more details.

### Save and load pane layouts

Expand Down

0 comments on commit c826ea9

Please sign in to comment.