From aaa55ca063666fc62f9c1ea280a5c15c74a8ee1c Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Fri, 23 Apr 2021 19:55:11 +0200 Subject: [PATCH] refactor(core): change event package names --- espanso/src/engine/event/mod.rs | 1 - espanso/src/engine/event/text.rs | 31 ------------------- .../src/engine/process/middleware/cause.rs | 1 - .../engine/process/middleware/cursor_hint.rs | 2 +- 4 files changed, 1 insertion(+), 34 deletions(-) delete mode 100644 espanso/src/engine/event/text.rs diff --git a/espanso/src/engine/event/mod.rs b/espanso/src/engine/event/mod.rs index 7af62dc..55956c1 100644 --- a/espanso/src/engine/event/mod.rs +++ b/espanso/src/engine/event/mod.rs @@ -17,7 +17,6 @@ * along with espanso. If not, see . */ -pub mod text; pub mod input; pub mod effect; pub mod internal; diff --git a/espanso/src/engine/event/text.rs b/espanso/src/engine/event/text.rs deleted file mode 100644 index 139e2de..0000000 --- a/espanso/src/engine/event/text.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of espanso. - * - * Copyright (C) 2019-2021 Federico Terzi - * - * espanso is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * espanso is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with espanso. If not, see . - */ - -#[derive(Debug, Clone)] -pub struct TextInjectRequest { - pub text: String, - pub force_mode: Option, -} - -#[derive(Debug, PartialEq, Clone)] -pub enum TextInjectMode { - Keys, - Clipboard, -} - diff --git a/espanso/src/engine/process/middleware/cause.rs b/espanso/src/engine/process/middleware/cause.rs index 17adc94..1f1f007 100644 --- a/espanso/src/engine/process/middleware/cause.rs +++ b/espanso/src/engine/process/middleware/cause.rs @@ -24,7 +24,6 @@ use crate::engine::{ effect::TriggerCompensationEvent, input::{Key, KeySequenceInjectRequest}, internal::CauseCompensatedMatchEvent, - text::{TextInjectMode, TextInjectRequest}, Event, }, }; diff --git a/espanso/src/engine/process/middleware/cursor_hint.rs b/espanso/src/engine/process/middleware/cursor_hint.rs index f177941..bda1544 100644 --- a/espanso/src/engine/process/middleware/cursor_hint.rs +++ b/espanso/src/engine/process/middleware/cursor_hint.rs @@ -18,7 +18,7 @@ */ use super::super::Middleware; -use crate::engine::{dispatch::Mode, event::{Event, effect::CursorHintCompensationEvent, input::{Key, KeySequenceInjectRequest}, internal::RenderedEvent, text::{TextInjectMode, TextInjectRequest}}}; +use crate::engine::{dispatch::Mode, event::{Event, effect::CursorHintCompensationEvent, input::{Key}, internal::RenderedEvent}}; pub struct CursorHintMiddleware {}