From 6af10645ffe16fc0313d3f4801c0bc083caab90f Mon Sep 17 00:00:00 2001 From: sxyazi Date: Tue, 30 Jan 2024 18:56:09 +0800 Subject: [PATCH] docs: mention a Rust bug that prevents the use of `created` as a sort method --- docs/configuration/keymap.md | 2 +- docs/configuration/yazi.md | 2 +- docs/plugins/overview.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/configuration/keymap.md b/docs/configuration/keymap.md index 24a685c4..135ef053 100644 --- a/docs/configuration/keymap.md +++ b/docs/configuration/keymap.md @@ -300,7 +300,7 @@ Move the cursor to the next or previous occurrence. - `by`: Optional, if not provided, the sort method will be kept unchanged. - `"none"`: Don't sort. - `"modified"`: Sort by last modified time. - - `"created"`: Sort by creation time. + - `"created"`: Sort by creation time. (Due to a Rust bug, this is not available at the moment, see [sxyazi/yazi#356](https://github.com/sxyazi/yazi/issues/356) and [rust-lang/rust#108277](https://github.com/rust-lang/rust/issues/108277)) - `"extension"`: Sort by file extension. - `"alphabetical"`: Sort alphabetically, e.g. `1.md` < `10.md` < `2.md` - `"natural"`: Sort naturally, e.g. `1.md` < `2.md` < `10.md` diff --git a/docs/configuration/yazi.md b/docs/configuration/yazi.md index 7503f77b..b7846d8f 100644 --- a/docs/configuration/yazi.md +++ b/docs/configuration/yazi.md @@ -23,7 +23,7 @@ File sorting method. - `"none"`: Don't sort. - `"modified"`: Sort by last modified time. -- `"created"`: Sort by creation time. +- `"created"`: Sort by creation time. (Due to a Rust bug, this is not available at the moment, see [sxyazi/yazi#356](https://github.com/sxyazi/yazi/issues/356) and [rust-lang/rust#108277](https://github.com/rust-lang/rust/issues/108277)) - `"extension"`: Sort by file extension. - `"alphabetical"`: Sort alphabetically, e.g. `1.md` < `10.md` < `2.md` - `"natural"`: Sort naturally, e.g. `1.md` < `2.md` < `10.md` diff --git a/docs/plugins/overview.md b/docs/plugins/overview.md index 93d795c1..82d12784 100644 --- a/docs/plugins/overview.md +++ b/docs/plugins/overview.md @@ -70,7 +70,7 @@ When a plugin is executed asynchronously, an isolated async context is created f In this context, you can use all the async functions supported by Yazi, and it operates concurrently with the main thread, ensuring that the main thread is not blocked. -You can also obtain a small amount of app data from the sync context by calling a "sync function" (will be supported in the next target, v0.2.1): +You can also obtain a small amount of app data from the sync context by calling a "sync function" (will be supported in the next target, v0.2.4): ```lua -- ~/.config/yazi/plugins/my-async-plugin.yazi/init.lua