Skip to content

Commit 90bafc6

Browse files
committed
(impl) added Native Shell Support + Rapid Auto-complete
1 parent e134e7d commit 90bafc6

File tree

11 files changed

+629
-14
lines changed

11 files changed

+629
-14
lines changed

directory_2/Cargo.lock

Lines changed: 210 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

directory_2/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ edition = "2024"
55

66
[dependencies]
77
colored = "3.0.0"
8+
crossterm = "0.29.0"
89
open = "5.3.2"
910
rust_search = "2.1.0"
1011
serde = { version = "1.0.219", features = ["derive"] }
1112
serde_json = "1.0.141"
1213

1314
[build-dependencies]
14-
winres = "0.1"
15+
winres = "0.1"

directory_2/src/commands.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use crate::indexer;
12
use colored::Colorize;
23
use std::path::{Path, PathBuf};
34

@@ -455,6 +456,13 @@ pub fn execute_watch_directory(
455456

456457
// Update current directory
457458
sys_state.set_current_directory(sys_state.get_current_path().join(dir_path));
459+
460+
// Index current directory
461+
indexer::index_current_directory(sys_state);
462+
463+
// Clear index
464+
sys_state.clear_index();
465+
458466
Ok(format!("Changed to directory: {}", directory))
459467
}
460468

0 commit comments

Comments
 (0)