mirror of
https://github.com/nushell/nushell.git
synced 2025-01-03 13:00:08 +01:00
menu with tab (#724)
This commit is contained in:
parent
186da4d725
commit
58c5ea4937
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -2777,7 +2777,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "reedline"
|
||||
version = "0.2.0"
|
||||
source = "git+https://github.com/nushell/reedline?branch=main#2cb2e40195b86145dd90779f4015dc834a62b720"
|
||||
source = "git+https://github.com/nushell/reedline?branch=main#63aeeb62e4c4292dff42e922a28178e1ad76d6e9"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"crossterm",
|
||||
|
12
src/main.rs
12
src/main.rs
@ -388,17 +388,17 @@ fn main() -> Result<()> {
|
||||
|
||||
let line_editor = Reedline::create()
|
||||
.into_diagnostic()?
|
||||
.with_completion_action_handler(Box::new(FuzzyCompletion {
|
||||
completer: Box::new(NuCompleter::new(engine_state.clone())),
|
||||
}))
|
||||
// .with_completion_action_handler(Box::new(FuzzyCompletion {
|
||||
// completer: Box::new(NuCompleter::new(engine_state.clone())),
|
||||
// }))
|
||||
// .with_completion_action_handler(Box::new(
|
||||
// ListCompletionHandler::default().with_completer(Box::new(completer)),
|
||||
// ))
|
||||
.with_highlighter(Box::new(NuHighlighter {
|
||||
engine_state: engine_state.clone(),
|
||||
config: config.clone(),
|
||||
}))
|
||||
.with_animation(config.animate_prompt)
|
||||
// .with_completion_action_handler(Box::new(
|
||||
// ListCompletionHandler::default().with_completer(Box::new(completer)),
|
||||
// ))
|
||||
.with_validator(Box::new(NuValidator {
|
||||
engine_state: engine_state.clone(),
|
||||
}))
|
||||
|
Loading…
Reference in New Issue
Block a user