add tab completion for unescaped paths

Signed-off-by: Ava Affine <ava@sunnypup.io>
This commit is contained in:
Ava Apples Affine 2024-02-07 11:13:17 -08:00
parent b8e22f1b07
commit f902bd5473
2 changed files with 2 additions and 3 deletions

View file

@ -106,7 +106,7 @@ impl Completer for CustomCompleter {
.expect("current dir bad?");
let (tok, is_str, start) = get_token_to_complete(line, pos);
let mut sugg = vec![];
if !is_str {
if !is_str && !tok.contains('/') {
let mut offcenter_match = vec![];
for sym in &self.0 {
if sym.starts_with(tok.as_str()) {