From d2ae57625f5dc3615c5e7834c5d115a240041ff1 Mon Sep 17 00:00:00 2001 From: Loric ANDRE Date: Tue, 28 Jul 2026 13:36:45 +0200 Subject: [PATCH] docs: preview command runs with sh/cmd, not SHELL --- Cargo.toml | 7 +++++++ man/man1/sk.1 | 6 +++--- src/options.rs | 6 +++--- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f22e7220..9b80a3b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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)'] } diff --git a/man/man1/sk.1 b/man/man1/sk.1 index fab8ecc7..44c940fe 100644 --- a/man/man1/sk.1 +++ b/man/man1/sk.1 @@ -514,9 +514,9 @@ Maximum number of query history entries to keep \fB\-\-preview\fR \fI\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**: diff --git a/src/options.rs b/src/options.rs index 882fda58..e5866455 100644 --- a/src/options.rs +++ b/src/options.rs @@ -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**: ///