From 9589f5573b8fb3c6d762633293be72e411611b55 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Tue, 9 Jul 2024 08:13:00 +0800 Subject: [PATCH] docs: fix selected files to clipboard example --- docs/configuration/keymap.md | 12 ++++++------ docs/tips.md | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/configuration/keymap.md b/docs/configuration/keymap.md index be03d0be..b8ece670 100644 --- a/docs/configuration/keymap.md +++ b/docs/configuration/keymap.md @@ -228,11 +228,11 @@ Move the files to the trash/recycle bin on macOS/Windows. For Linux, it will fol In the Android platform, you can only use it with the `--permanently` option, since there lacks the concept of a trash bin. -| Argument/Option | Description | -| --------------- | -------------------------------------------------------------------- | -| `--force` | Don't show the confirmation dialog, and trash/delete files directly. | -| `--permanently` | Permanently delete the files. | -| `--hovered` | Always remove the hovered file regardless of the selection state. | +| Argument/Option | Description | +| --------------- | ----------------------------------------------------------------------------------------------------------- | +| `--force` | Don't show the confirmation dialog, and trash/delete files directly. | +| `--permanently` | Permanently delete the files. | +| `--hovered` | Always remove the hovered file regardless of the selection state. (Nightly version of Yazi is required ATM) | ### `create` {#manager.create} @@ -246,7 +246,7 @@ Create a file or directory. Ends with `/` (Unix) or `\` (Windows) for directorie Rename a file or directory, or bulk rename if multiple files are selected (`$EDITOR` is used to edit the filenames by default). -- `--hovered`: Always rename the hovered file regardless of the selection state. +- `--hovered`: Always rename the hovered file regardless of the selection state. (Nightly version of Yazi is required ATM) - `--force`: Overwrite the destination file directly if it exists, without showing the confirmation dialog. - `--empty`: Empty a part of the filename. - `"stem"`: Empty the stem. e.g. `"foo.jpg"` -> `".jpg"`. diff --git a/docs/tips.md b/docs/tips.md index 3c644005..4c99a223 100644 --- a/docs/tips.md +++ b/docs/tips.md @@ -134,9 +134,9 @@ Yazi allows multiple commands to be bound to a single key, so you can set y ```toml [[manager.prepend_keymap]] on = [ "y" ] -run = [ "yank", ''' - shell --confirm 'echo "$@" | xclip -i -selection clipboard -t text/uri-list' -''' ] +run = [ ''' + shell 'echo "$@" | xclip -i -selection clipboard -t text/uri-list' --confirm +''', "yank" ] ``` The above is available on X11, there is also a Wayland version (Thanks [@hurutparittya for sharing this](https://discord.com/channels/1136203602898194542/1136203604076802092/1188498323867455619) in Yazi's discord server): @@ -144,9 +144,9 @@ The above is available on X11, there is also a Wayland version (Thanks [@hurutpa ```toml [[manager.prepend_keymap]] on = [ "y" ] -run = [ "yank", ''' - shell --confirm 'for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list' -''' ] +run = [ ''' + shell 'for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list' --confirm +''', "yank" ] ``` ## Maximize preview pane {#max-preview}