summaryrefslogtreecommitdiffstats
path: root/src/mode.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2022-12-17 22:21:48 +0100
committerqkzk <qu3nt1n@gmail.com>2022-12-17 22:21:48 +0100
commitb70bc3d299ff9c76f0eda96626724196cc12314c (patch)
tree1fa9920af8861276daaf1e73225904cc2898d8a8 /src/mode.rs
parent4a8e3d8b576c35b82456216a36a02f8da726a301 (diff)
document mark actions
Diffstat (limited to 'src/mode.rs')
-rw-r--r--src/mode.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mode.rs b/src/mode.rs
index 778bf3f..8ded13d 100644
--- a/src/mode.rs
+++ b/src/mode.rs
@@ -1,8 +1,13 @@
use std::fmt;
+/// Different kind of mark actions.
+/// Either we jump to an existing mark or we save current path to a mark.
+/// In both case, we'll have to listen to the next char typed.
#[derive(Clone)]
pub enum MarkAction {
+ /// Jump to a selected mark (ie a path associated to a char)
Jump,
+ /// Creates a new mark (a path associated to a char)
New,
}