diff options
| author | Jonas Maier <> | 2026-03-11 15:32:51 +0100 |
|---|---|---|
| committer | Jonas Maier <> | 2026-03-11 15:32:51 +0100 |
| commit | 18ad2173816bf455c2dabece9009aae29133b3d3 (patch) | |
| tree | 97c03b0bb2be3df5fbe5ff09cc8f9c5c84801758 /src/completion.rs | |
| parent | 15501132916dfbc24f23b619e6d5408f258fc0d9 (diff) | |
| download | pish-18ad2173816bf455c2dabece9009aae29133b3d3.tar.gz | |
first draft of cancellable builtins, kinda shit
Diffstat (limited to 'src/completion.rs')
| -rw-r--r-- | src/completion.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/completion.rs b/src/completion.rs index 80a0ebb..3e2565b 100644 --- a/src/completion.rs +++ b/src/completion.rs @@ -1,5 +1,9 @@ -use crate::*; +use crate::{BString, Session}; +use std::collections::HashMap; +use std::ffi::OsStr; +use std::os::unix::ffi::OsStrExt; use std::path::{Path, PathBuf}; +use std::sync::{Arc, Mutex}; use std::{env, fs}; pub struct Suggestion { @@ -7,7 +11,7 @@ pub struct Suggestion { pub delta: BString, } -fn _path_completion(mut prefix: BString) -> io::Result<Vec<Suggestion>> { +fn _path_completion(mut prefix: BString) -> std::io::Result<Vec<Suggestion>> { let mut partial_entry = BString::new(); while let Some(c) = prefix.last().cloned() { if c == b'/' { |
