docs: preview command runs with sh/cmd, not SHELL

This commit is contained in:
Loric ANDRE 2026-07-28 13:36:45 +02:00
parent c398374a85
commit d2ae57625f
3 changed files with 13 additions and 6 deletions

View file

@ -51,6 +51,13 @@ inherits = "release"
debug = true
strip = false
[profile.dev]
debug = "line-tables-only"
split-debuginfo = "unpacked"
[profile.dev.package."*"]
debug = false
[lints.rust]
missing_docs = "warn"
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage, coverage_nightly)'] }

View file

@ -514,9 +514,9 @@ Maximum number of query history entries to keep
\fB\-\-preview\fR \fI<PREVIEW>\fR
Preview command
Execute the given command for the current line and display the result on the preview window. {} in the command
is the placeholder that is replaced to the single\-quoted string of the current line. To transform the
replacement string, specify field index expressions between the braces (See FIELD INDEX EXPRESSION for the details).
Execute the given command with `sh \-c` on linux and `cmd /c` on windows for the current line and display the result on the preview window.
`{}` in the command is the placeholder that is replaced to the single\-quoted string of the current line.
To transform the replacement string, specify field index expressions between the braces (See FIELD INDEX EXPRESSION for the details).
**Examples**:

View file

@ -702,9 +702,9 @@ pub struct SkimOptions {
// --- Preview ---
/// Preview command
///
/// Execute the given command for the current line and display the result on the preview window. {} in the command
/// is the placeholder that is replaced to the single-quoted string of the current line. To transform the
/// replacement string, specify field index expressions between the braces (See FIELD INDEX EXPRESSION for the details).
/// Execute the given command with `sh -c` on linux and `cmd /c` on windows for the current line and display the result on the preview window.
/// `{}` in the command is the placeholder that is replaced to the single-quoted string of the current line.
/// To transform the replacement string, specify field index expressions between the braces (See FIELD INDEX EXPRESSION for the details).
///
/// **Examples**:
///