From d3a0d56ce64b82646930429d869933a947005823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E9=9B=85=20=C2=B7=20Misaki=20Masa?= Date: Wed, 16 Aug 2023 17:01:51 +0800 Subject: [PATCH] docs: update opener rules to the new format (#66) --- config/docs/yazi.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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.