From 9a059a1609fdc44b9a0e26592e07e15f64d475c9 Mon Sep 17 00:00:00 2001 From: KlzXS Date: Wed, 17 Nov 2021 00:17:48 +0100 Subject: [PATCH] Update behavior of %J --- Concepts.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Concepts.md b/Concepts.md index 4b688e9..131f1c7 100644 --- a/Concepts.md +++ b/Concepts.md @@ -263,7 +263,7 @@ Selection can be accessed from the native command prompt: | Variable | Substitution | |:---:| --- | | `%j` | repeat cmd with all `%j` substituted by each selected file path | -| `%J` | run the command only once with the _last_ `%J` substituted by all selected file paths | +| `%J` | run the command only once with `%J` as the _last characters_ substituted by all selected file paths | E.g. @@ -282,7 +282,7 @@ tar uvf archive.tar %J Notes: 1. You can only use either `%j` or `%J` inside a single command. If both are encountered the prompt will close. No command will be executed. -2. When using `%J` `nnn` won't quote the file paths from selection. Quoting `%J` will just place quotes around the entire selection, it won't quote each item individually. +2. When using `%J` `nnn` will automatically escape special characters. Any `%J` not at the end of the command will be left unsubstituted. #### Copy command from spawned shell to native command prompt