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]]
|
[[package]]
|
||||||
name = "reedline"
|
name = "reedline"
|
||||||
version = "0.2.0"
|
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 = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"crossterm",
|
"crossterm",
|
||||||
|
|
12
src/main.rs
12
src/main.rs
|
@ -388,17 +388,17 @@ fn main() -> Result<()> {
|
||||||
|
|
||||||
let line_editor = Reedline::create()
|
let line_editor = Reedline::create()
|
||||||
.into_diagnostic()?
|
.into_diagnostic()?
|
||||||
.with_completion_action_handler(Box::new(FuzzyCompletion {
|
// .with_completion_action_handler(Box::new(FuzzyCompletion {
|
||||||
completer: Box::new(NuCompleter::new(engine_state.clone())),
|
// 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 {
|
.with_highlighter(Box::new(NuHighlighter {
|
||||||
engine_state: engine_state.clone(),
|
engine_state: engine_state.clone(),
|
||||||
config: config.clone(),
|
config: config.clone(),
|
||||||
}))
|
}))
|
||||||
.with_animation(config.animate_prompt)
|
.with_animation(config.animate_prompt)
|
||||||
// .with_completion_action_handler(Box::new(
|
|
||||||
// ListCompletionHandler::default().with_completer(Box::new(completer)),
|
|
||||||
// ))
|
|
||||||
.with_validator(Box::new(NuValidator {
|
.with_validator(Box::new(NuValidator {
|
||||||
engine_state: engine_state.clone(),
|
engine_state: engine_state.clone(),
|
||||||
}))
|
}))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user