Skip to content

Commit

Permalink
docs: reword the ratio option
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Nov 20, 2024
1 parent ff1547b commit 3685340
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
24 changes: 12 additions & 12 deletions docs/configuration/keymap.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: Learn how to configure keyboard shortcuts with Yazi.
# keymap.toml

:::note
If you haven't created and used your own configuration file yet, please see [Configuration](/docs/configuration/overview).
If you want to fine-tune the default settings, the first step is to [create your own configuration file](/docs/configuration/overview).
:::

You can change Yazi's keybindings in your `keymap.toml` file, which consists of the following 6 layers:
Expand Down Expand Up @@ -81,14 +81,14 @@ keymap = [

Cancel find, exit visual mode, clear selected, cancel filter, or cancel search.

| Argument/Option | Description |
| --------------- | -------------------- |
| `--all` | Do all the below. |
| `--find` | Cancel find. |
| `--visual` | Exit visual mode. |
| `--select` | Clear selected. |
| `--filter` | Cancel filter. |
| `--search` | Cancel search. |
| Argument/Option | Description |
| --------------- | ----------------- |
| `--all` | Do all the below. |
| `--find` | Cancel find. |
| `--visual` | Exit visual mode. |
| `--select` | Clear selected. |
| `--filter` | Cancel filter. |
| `--search` | Cancel search. |

Automatically determine the operation by default, and it will only execute the selected operation after specifying the option; multiple options can be stacked.

Expand Down Expand Up @@ -597,7 +597,7 @@ Move the cursor left or right.
| Argument/Option | Description |
| ---------------- | ------------------------------------------------------------------------------------------------ |
| `[n]` | Move the cursor `n` characters left or right. Negative value for left, positive value for right. |
| `--in-operating` | Move the cursor only if it's currently waiting for an operation. |
| `--in-operating` | Move the cursor only if it's currently waiting for an operation. |

### `backward` {#input.backward}

Expand Down Expand Up @@ -689,8 +689,8 @@ See [`noop` command](#manager.noop).

Cancel and close the confirmation dialog.

| Argument/Option | Description |
| --------------- | ---------------------- |
| Argument/Option | Description |
| --------------- | ------------------------ |
| `--submit` | Submit the confirmation. |

### `arrow` {#confirm.arrow}
Expand Down
6 changes: 4 additions & 2 deletions docs/configuration/yazi.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ description: Learn how to configure Yazi's basic functionality.
# yazi.toml

:::note
If you haven't created and used your own configuration file yet, please see [Configuration](/docs/configuration/overview).
If you want to fine-tune the default settings, the first step is to [create your own configuration file](/docs/configuration/overview).
:::

## [manager] {#manager}

### `ratio` {#manager.ratio}

Manager layout by ratio, 3-element array.
Manager layout by ratio, 3-element array. For example:

- `[1, 4, 3]`: 1/8 width for parent, 4/8 width for current, 3/8 width for preview

Set the value to `0` to hide the corresponding panel, but at least one panel must be visible (non-zero).

### `sort_by` {#manager.sort_by}

File sorting method.
Expand Down

0 comments on commit 3685340

Please sign in to comment.