Update behavior of %J

KlzXS 2021-11-17 00:17:48 +01:00
parent 8592122451
commit 9a059a1609

@ -263,7 +263,7 @@ Selection can be accessed from the native command prompt:
| Variable | Substitution | | Variable | Substitution |
|:---:| --- | |:---:| --- |
| `%j` | repeat cmd with all `%j` substituted by each selected file path | | `%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. E.g.
@ -282,7 +282,7 @@ tar uvf archive.tar %J
Notes: 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. 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 #### Copy command from spawned shell to native command prompt