mirror of
https://github.com/nushell/nushell.git
synced 2025-08-15 02:42:49 +02:00
Clarify that input
's history feature uses reedline (#16334)
Follow up to this commit @sholderbach made on my PR #16329:
f21350ec88 (diff-5cab4dac5ced236548db9fbf6cd0e9d250ba12317bb916ec26603054ce9144a7)
This commit is contained in:
@ -55,13 +55,13 @@ impl Command for Input {
|
|||||||
.named(
|
.named(
|
||||||
"history-file",
|
"history-file",
|
||||||
SyntaxShape::Filepath,
|
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,
|
None,
|
||||||
)
|
)
|
||||||
.named(
|
.named(
|
||||||
"max-history",
|
"max-history",
|
||||||
SyntaxShape::Int,
|
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,
|
None,
|
||||||
)
|
)
|
||||||
.switch("suppress-output", "don't print keystroke values", Some('s'))
|
.switch("suppress-output", "don't print keystroke values", Some('s'))
|
||||||
@ -230,7 +230,7 @@ impl Command for Input {
|
|||||||
},
|
},
|
||||||
Example {
|
Example {
|
||||||
description: "Get input from the user with history backed by a file, and assign to a variable",
|
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,
|
result: None,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user