1
0
mirror of https://github.com/chylex/Bark-Browser.git synced 2025-09-15 14:32:12 +02:00

1 Commits
main ... wip2

Author SHA1 Message Date
c606834302 WIP 2023-09-16 05:18:56 +02:00
3 changed files with 14 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
use crate::component::filesystem::FsLayer;
use crate::component::input::InputFieldOverlayLayer;
use crate::state::action::{Action, ActionResult};
use crate::state::Environment;
@@ -17,3 +18,14 @@ impl Action<FsLayer> for RedrawScreen {
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
}))
}
}

View File

@@ -0,0 +1 @@
mod shell;

View File

@@ -0,0 +1 @@
pub struct RunShellCommand;