diff options
author | qkzk <qu3nt1n@gmail.com> | 2022-10-18 06:03:07 +0200 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2022-10-18 06:03:07 +0200 |
commit | 8556b340eb213171f9ce4e5f37c3a2d726223660 (patch) | |
tree | e13e064efcc8fb852279795d39501aa000ceb9a1 /src/actioner.rs | |
parent | 7453c1c0dc580c1054a8dcac5183fc6e58f3f482 (diff) |
doesn't work
Diffstat (limited to 'src/actioner.rs')
-rw-r--r-- | src/actioner.rs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/actioner.rs b/src/actioner.rs index d6953c3..40d38e2 100644 --- a/src/actioner.rs +++ b/src/actioner.rs @@ -5,7 +5,7 @@ use tuikit::term::Term; use crate::config::Keybindings; use crate::event_char::EventChar; -use crate::mode::Mode; +use crate::mode::{MarkAction, Mode}; use crate::skim::Skimer; use crate::tabs::Tabs; @@ -51,6 +51,8 @@ impl Actioner { (keybindings.history, EventChar::History), (keybindings.shortcut, EventChar::Shortcut), (keybindings.bulkrename, EventChar::Bulkrename), + (keybindings.marks_new, EventChar::MarksNew), + (keybindings.marks_jump, EventChar::MarksJump), ]); Self { binds, term } } @@ -230,7 +232,12 @@ impl Actioner { Mode::Jump => tabs.exec_jump(), Mode::History => tabs.selected().exec_history(), Mode::Shortcut => tabs.selected().exec_shortcut(), - Mode::Normal | Mode::NeedConfirmation | Mode::Help | Mode::Sort | Mode::Preview => (), + Mode::Normal + | Mode::NeedConfirmation + | Mode::Help + | Mode::Sort + | Mode::Preview + | Mode::Marks(_) => (), } tabs.selected().input.reset(); @@ -291,6 +298,8 @@ impl Actioner { } tabs.selected().event_leave_need_confirmation() } + Mode::Marks(MarkAction::Jump) => tabs.exec_marks_jump(c), + Mode::Marks(MarkAction::New) => tabs.exec_marks_new(c), Mode::Sort => tabs.selected().event_leave_sort(c), } } |