From 530091df74b72754df646e01a6e3e0c2e24e3043 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Fri, 12 Apr 2024 23:53:03 +0800 Subject: [PATCH] docs: improve the description of the `linemode` option by adding more details --- docs/configuration/keymap.md | 16 ++++++++-------- docs/configuration/yazi.md | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/configuration/keymap.md b/docs/configuration/keymap.md index d28cfcf7..914ab247 100644 --- a/docs/configuration/keymap.md +++ b/docs/configuration/keymap.md @@ -128,7 +128,7 @@ Go forward to the next directory. ### `seek` {#manager.seek} -| Argument/Option | Description | +| Argument/Option | Description | | --------------- | ----------------------------------------------------------------------------------------------------------------- | | `[n]` | Seek up or down at file contents in the preview. Use negative values to peek up and positive values to peek down. | @@ -295,14 +295,14 @@ Set the visibility of hidden files. ### `linemode` {#manager.linemode} -Set the line mode. +Set the [line mode](./yazi#manager.linemode). -| Argument/Option | Description | -| --------------- | ------------------------------------------- | -| `none` | No line mode. | -| `size` | Display the size of the file. | -| `permissions` | Display the permissions of the file. | -| `mtime` | Display the last modified time of the file. | +| Argument/Option | Description | +| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `none` | No line mode. | +| `size` | Display the size in bytes of the file. Since file sizes are only evaluated when sorting by size, it only works after [`sort_by = "size"`](./yazi#manager.sort_by) set, and this behavior might change in the future. | +| `permissions` | Display the permissions of the file. | +| `mtime` | Display the last modified time of the file. | In addition, you can also specify any 1 to 20 characters, and extend it within a UI plugin. Which means you can implement your own linemode through the plugin by simply overriding the [`Folder:linemode` method](https://github.com/sxyazi/yazi/blob/latest/yazi-plugin/preset/components/folder.lua). diff --git a/docs/configuration/yazi.md b/docs/configuration/yazi.md index 2944e9f7..253e9843 100644 --- a/docs/configuration/yazi.md +++ b/docs/configuration/yazi.md @@ -55,7 +55,7 @@ Display directories first. Line mode: display information associated with the file on the right side of the file list row. - `"none"`: No line mode. -- `"size"`: Display the size of the file. +- `"size"`: Display the size in bytes of the file. Since file sizes are only evaluated when sorting by size, it only works after [`sort_by = "size"`](./yazi#manager.sort_by) set, and this behavior might change in the future. - `"permissions"`: Display the permissions of the file. - `"mtime"`: Display the last modified time of the file.