|
@@ -9,8 +9,8 @@ use error_chain::bail;
|
|
use insert::InsertRenderer;
|
|
use insert::InsertRenderer;
|
|
use linked_hash_map::LinkedHashMap;
|
|
use linked_hash_map::LinkedHashMap;
|
|
use normal::NormalRenderer;
|
|
use normal::NormalRenderer;
|
|
-use search::{SearchData, SearchRenderer};
|
|
|
|
use replace::ReplaceRenderer;
|
|
use replace::ReplaceRenderer;
|
|
|
|
+use search::{SearchData, SearchRenderer};
|
|
use smallvec::SmallVec;
|
|
use smallvec::SmallVec;
|
|
use strum::EnumIter;
|
|
use strum::EnumIter;
|
|
use workspace::{WorkspaceModeData, WorkspaceRender};
|
|
use workspace::{WorkspaceModeData, WorkspaceRender};
|
|
@@ -20,14 +20,14 @@ use super::handler::handle_map;
|
|
use super::Application;
|
|
use super::Application;
|
|
|
|
|
|
pub mod command;
|
|
pub mod command;
|
|
-pub mod motion;
|
|
|
|
pub mod delete;
|
|
pub mod delete;
|
|
pub mod error;
|
|
pub mod error;
|
|
mod insert;
|
|
mod insert;
|
|
|
|
+pub mod motion;
|
|
pub mod normal;
|
|
pub mod normal;
|
|
-pub mod workspace;
|
|
|
|
-pub mod search;
|
|
|
|
mod replace;
|
|
mod replace;
|
|
|
|
+pub mod search;
|
|
|
|
+pub mod workspace;
|
|
|
|
|
|
pub enum ModeData {
|
|
pub enum ModeData {
|
|
Normal,
|
|
Normal,
|
|
@@ -37,7 +37,8 @@ pub enum ModeData {
|
|
Command(CommandData),
|
|
Command(CommandData),
|
|
Workspace(WorkspaceModeData),
|
|
Workspace(WorkspaceModeData),
|
|
Search(SearchData),
|
|
Search(SearchData),
|
|
- Delete, Replace, // Other(OtherData)
|
|
|
|
|
|
+ Delete,
|
|
|
|
+ Replace, // Other(OtherData)
|
|
}
|
|
}
|
|
|
|
|
|
#[derive(Debug, PartialEq, Eq, Hash, Clone, Copy, EnumIter)]
|
|
#[derive(Debug, PartialEq, Eq, Hash, Clone, Copy, EnumIter)]
|