From 868aa79127f492294bb2181b64288242e38cb385 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 7 Feb 2025 10:21:49 -0700 Subject: [PATCH] Limit completions to 8 --- src/tab.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tab.rs b/src/tab.rs index e599d4f..3617d94 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -266,6 +266,8 @@ fn tab_complete(path: &Path) -> Result, Box> { } completions.sort_by(|a, b| LANGUAGE_SORTER.compare(&a.0, &b.0)); + //TODO: make the list scrollable? + completions.truncate(8); Ok(completions) }