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

@ -165,9 +165,8 @@ Note: this section only tracks the state of incomplete TODO items. Having everyt
- Can pass args to flesh scripts (via command line)
- Can pass args to flesh scripts (via interpreter)
- Pipe also operates on stderr
- ~ if possible (string replacement?
- ~ if possible (string replacement?)
- tab completion for symbols also attempts to complete binaries
- tab completion for symbols also attempts to complete paths
- finish basic goals in the [[file:snippets/interactive-devel.f][interactive development library]]
- Release CI
- Make an icon if you feel like it

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()) {