BlackPhlox/wte

Create a new dialoguer prompt for directory navigation

Opened this issue · 0 comments

Something like this:

let filepath = FilepathSelect::with_theme(&ColorfulTheme::default())
        .with_prompt("Pick your json or js file")
		.extensions(vec!["json","js"])
        .defaults("C:/Users/thelu/Repos/wte/src")//Give path or default to current dir path
        .interact()
        .unwrap();