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
58
59
60
61
62
63
64
65
//! Mode enum: Navigation, Visual, Search, and Command.
//!
//! Determines how keystrokes are dispatched and what the status bar displays.
//! All three variants are defined here so the state shape is complete from
//! Phase 1 onward; only `Navigation` is functionally wired this phase.
/// The current interaction mode of the application.
///
/// - `Navigation` — default; `j`/`k`/`l`/`h` browse the directory tree.
/// - `Search` — entered via `/`; keystrokes build a fuzzy query (Phase 2).
/// - `Command` — entered via `:`; keystrokes build a command line (Phase 3).