diff options
author | qkzk <qu3nt1n@gmail.com> | 2022-11-23 22:21:57 +0100 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2022-11-23 22:21:57 +0100 |
commit | 302393119dcb01994e33d890750ee532c456f53d (patch) | |
tree | 28fbebe09f73722d9cb0efd92170f9b67dd4b806 /src/actioner.rs | |
parent | 64cf225c2eab05f6c3d21e9c55b113c6ab409b56 (diff) |
dragon drag & drop with alt+d
Diffstat (limited to 'src/actioner.rs')
-rw-r--r-- | src/actioner.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/actioner.rs b/src/actioner.rs index 2cf1cf7..259f09d 100644 --- a/src/actioner.rs +++ b/src/actioner.rs @@ -72,6 +72,7 @@ impl Actioner { Event::Key(Key::Delete) => self.delete(status), Event::Key(Key::Insert) => self.insert(status), Event::Key(Key::Alt('q')) => self.alt_q(status), + Event::Key(Key::Alt('d')) => self.alt_d(status), Event::Key(Key::Char('Q')) => self.shift_q(status), Event::Key(Key::Char(c)) => self.char(status, c), Event::Key(Key::Home) => self.home(status), @@ -372,6 +373,11 @@ impl Actioner { Ok(()) } + fn alt_d(&self, status: &mut Status) -> FmResult<()> { + status.selected().event_drag_n_drop()?; + Ok(()) + } + /// Match read key to a relevent event, depending on keybindings. /// Keybindings are read from `Config`. fn char(&self, status: &mut Status, c: char) -> FmResult<()> { |