mirror of https://github.com/helix-editor/helix
Wrap current directory picker with overlay widget (#2308)
parent
3a398eec56
commit
477b88e99c
|
@ -2091,7 +2091,7 @@ fn file_picker(cx: &mut Context) {
|
||||||
fn file_picker_in_current_directory(cx: &mut Context) {
|
fn file_picker_in_current_directory(cx: &mut Context) {
|
||||||
let cwd = std::env::current_dir().unwrap_or_else(|_| PathBuf::from("./"));
|
let cwd = std::env::current_dir().unwrap_or_else(|_| PathBuf::from("./"));
|
||||||
let picker = ui::file_picker(cwd, &cx.editor.config());
|
let picker = ui::file_picker(cwd, &cx.editor.config());
|
||||||
cx.push_layer(Box::new(picker));
|
cx.push_layer(Box::new(overlayed(picker)));
|
||||||
}
|
}
|
||||||
|
|
||||||
fn buffer_picker(cx: &mut Context) {
|
fn buffer_picker(cx: &mut Context) {
|
||||||
|
|
Loading…
Reference in New Issue