From 917e08bdaa8a7a78444ab2db5a2a04bd28b6c00f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Fri, 27 Sep 2024 13:32:33 -0600 Subject: [PATCH] Use CompletionType::List This is how Bash behaves, it is a lot more natural. --- crates/shell/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/shell/src/main.rs b/crates/shell/src/main.rs index b6c3be3..9b72392 100644 --- a/crates/shell/src/main.rs +++ b/crates/shell/src/main.rs @@ -32,7 +32,7 @@ fn init_state() -> ShellState { async fn interactive() -> anyhow::Result<()> { let config = Config::builder() .history_ignore_space(true) - .completion_type(CompletionType::Circular) + .completion_type(CompletionType::List) .build(); let mut rl = Editor::with_config(config)?;