mirror of
https://github.com/sxyazi/yazi.git
synced 2024-12-18 22:31:35 +03:00
docs: update opener rules to the new format (#66)
This commit is contained in:
parent
639b8425d9
commit
d3a0d56ce6
@ -37,10 +37,10 @@ Configure available openers, for example:
|
||||
```toml
|
||||
[opener]
|
||||
archive = [
|
||||
{ exec = "unar $1" },
|
||||
{ exec = 'unar "$1"' },
|
||||
]
|
||||
text = [
|
||||
{ exec = "nvim $*", block = true },
|
||||
{ exec = 'nvim "$@"', block = true },
|
||||
]
|
||||
# ...
|
||||
```
|
||||
@ -48,8 +48,8 @@ text = [
|
||||
Available parameters are as follows:
|
||||
|
||||
- exec: The command to open the selected files, with the following variables available:
|
||||
- `$n`: The N-th selected file
|
||||
- `$*`: All selected files
|
||||
- `$n`: The N-th selected file, starting from 1
|
||||
- `$@`: All selected files
|
||||
- `foo`: Literal string to be passed
|
||||
- block: Open in a blocking manner. After setting this, Yazi will hide into a secondary screen and display the program on the main screen until it exits. During this time, it can receive I/O signals, which is useful for interactive programs.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user