Limit completions to 8

This commit is contained in:
Jeremy Soller 2025-02-07 10:21:49 -07:00
parent 121e9f5cf4
commit 868aa79127
No known key found for this signature in database
GPG key ID: 670FDFB5428E05CA

View file

@ -266,6 +266,8 @@ fn tab_complete(path: &Path) -> Result<Vec<(String, PathBuf)>, Box<dyn Error>> {
}
completions.sort_by(|a, b| LANGUAGE_SORTER.compare(&a.0, &b.0));
//TODO: make the list scrollable?
completions.truncate(8);
Ok(completions)
}