1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
mod buffer; mod byte_rope; pub mod hex_view; #[macro_use] mod keymap; mod mode; mod operations; mod selection; mod cmd_count; mod collapse_mode; mod command_mode; mod insert_mode; mod jumpto_mode; mod normal_mode; mod replace_mode; mod search_mode; mod split_mode; mod modes { pub mod quitting { use std::borrow::Cow; #[derive(Debug, PartialEq, Eq, Clone, Copy)] pub struct Quitting(); impl crate::mode::Mode for Quitting { fn name(&self) -> Cow<'static, str> { "QUITTING".into() } fn takes_input(&self) -> bool { false } fn transition( &self, _: &crossterm::event::Event, _: &mut crate::buffer::Buffers, _: usize, ) -> Option<crate::mode::ModeTransition> { unreachable!(); } fn as_any(&self) -> &dyn std::any::Any { self } } } pub(crate) use super::collapse_mode as collapse; pub(crate) use super::command_mode as command; pub(crate) use super::insert_mode as insert; pub(crate) use super::jumpto_mode as jumpto; pub(crate) use super::normal_mode as normal; pub(crate) use super::replace_mode as replace; pub(crate) use super::search_mode as search; pub(crate) use super::split_mode as split; } pub use buffer::{Buffer, Buffers};