Skip to content

Commit

Permalink
docs: fix selected files to clipboard example
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Jul 9, 2024
1 parent 5388f12 commit 9589f55
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions docs/configuration/keymap.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand All @@ -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"`.
Expand Down
12 changes: 6 additions & 6 deletions docs/tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,19 +134,19 @@ Yazi allows multiple commands to be bound to a single key, so you can set <kbd>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):

```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}
Expand Down

0 comments on commit 9589f55

Please sign in to comment.