From 06fa1784c1a580b38f8f9650787a54182d187bea Mon Sep 17 00:00:00 2001 From: Harper Andrews <10224994+ItsHarper@users.noreply.github.com> Date: Fri, 8 Aug 2025 15:20:42 -0500 Subject: [PATCH] Clarify that `input`'s history feature uses reedline (#16334) Follow up to this commit @sholderbach made on my PR #16329: https://github.com/nushell/nushell/pull/16329/commits/f21350ec88a2f538f9ddc55bf464b5132c9634d6#diff-5cab4dac5ced236548db9fbf6cd0e9d250ba12317bb916ec26603054ce9144a7 --- crates/nu-command/src/platform/input/input_.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/nu-command/src/platform/input/input_.rs b/crates/nu-command/src/platform/input/input_.rs index 1f5956792f..b855a997bb 100644 --- a/crates/nu-command/src/platform/input/input_.rs +++ b/crates/nu-command/src/platform/input/input_.rs @@ -55,13 +55,13 @@ impl Command for Input { .named( "history-file", SyntaxShape::Filepath, - "Path to a file to read and write command history. This is a text file and will be created if it doesn't exist. Will be used as the selection list.", + "Path to a file to read and write command history. This is a text file and will be created if it doesn't exist. Will be used as the selection list. Implies `--reedline`.", None, ) .named( "max-history", SyntaxShape::Int, - "The maximum number of entries to keep in the history, defaults to $env.config.history.max_size.", + "The maximum number of entries to keep in the history, defaults to $env.config.history.max_size. Implies `--reedline`.", None, ) .switch("suppress-output", "don't print keystroke values", Some('s')) @@ -230,7 +230,7 @@ impl Command for Input { }, Example { description: "Get input from the user with history backed by a file, and assign to a variable", - example: "let user_input = (input --history-file ./history.txt)", + example: "let user_input = (input --reedline --history-file ./history.txt)", result: None, }, ]