mirror of
https://github.com/chylex/Bark-Browser.git
synced 2025-09-15 23:32:11 +02:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
c606834302
|
@@ -1,4 +1,5 @@
|
|||||||
use crate::component::filesystem::FsLayer;
|
use crate::component::filesystem::FsLayer;
|
||||||
|
use crate::component::input::InputFieldOverlayLayer;
|
||||||
use crate::state::action::{Action, ActionResult};
|
use crate::state::action::{Action, ActionResult};
|
||||||
use crate::state::Environment;
|
use crate::state::Environment;
|
||||||
|
|
||||||
@@ -17,3 +18,14 @@ impl Action<FsLayer> for RedrawScreen {
|
|||||||
ActionResult::Redraw
|
ActionResult::Redraw
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub struct EnterCommandMode;
|
||||||
|
|
||||||
|
impl Action<FsLayer> for EnterCommandMode {
|
||||||
|
fn perform(&self, layer: &mut FsLayer, _environment: &Environment) -> ActionResult {
|
||||||
|
ActionResult::push_layer(InputFieldOverlayLayer::new(":", move |command| {
|
||||||
|
// command.split_once(" ")
|
||||||
|
ActionResult::PopLayer
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
1
src/component/filesystem/command/mod.rs
Normal file
1
src/component/filesystem/command/mod.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
mod shell;
|
1
src/component/filesystem/command/shell.rs
Normal file
1
src/component/filesystem/command/shell.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pub struct RunShellCommand;
|
Reference in New Issue
Block a user