1pub mod quitting {
2 use std::borrow::Cow;
3
4 #[derive(Debug, PartialEq, Eq, Clone, Copy)]
5 pub struct Quitting();
6
7 impl crate::modes::mode::Mode for Quitting {
8 fn name(&self) -> Cow<'static, str> {
9 "QUITTING".into()
10 }
11 fn takes_input(&self) -> bool {
12 false
13 }
14 fn transition(
15 &self,
16 _: &crossterm::event::Event,
17 _: &mut crate::buffer::Buffers,
18 _: usize,
19 ) -> Option<crate::modes::mode::ModeTransition> {
20 unreachable!();
21 }
22 fn as_any(&self) -> &dyn std::any::Any {
23 self
24 }
25 }
26}
27
28pub mod collapse;
29pub mod command;
30pub mod insert;
31pub mod jumpto;
32pub mod mode;
33pub mod normal;
34pub mod replace;
35pub mod search;
36pub mod split;