diff --git a/config/docs/yazi.md b/config/docs/yazi.md index f4201e39..e6614b04 100644 --- a/config/docs/yazi.md +++ b/config/docs/yazi.md @@ -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.