summaryrefslogtreecommitdiffstats
path: root/src/actioner.rs
diff options
context:
space:
mode:
authorquentin konieczko <konieczko@gmail.com>2022-12-09 07:50:45 +0100
committerquentin konieczko <konieczko@gmail.com>2022-12-09 07:50:45 +0100
commit1a42a8eb1b5285712773ef28d80cced0085f3fcb (patch)
tree23449a5ca96bcc90b06c45e8d7e692c6fdf80b64 /src/actioner.rs
parent4e23b80ac4d945f08c463476461b29f6d4dec837 (diff)
toggle file details with ctrl+e
Diffstat (limited to 'src/actioner.rs')
-rw-r--r--src/actioner.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/actioner.rs b/src/actioner.rs
index d146e84..02954d0 100644
--- a/src/actioner.rs
+++ b/src/actioner.rs
@@ -54,6 +54,7 @@ impl Actioner {
Event::Key(Key::Ctrl('p')) => Self::ctrl_p(status),
Event::Key(Key::Ctrl('r')) => Self::ctrl_r(status),
Event::Key(Key::Ctrl('x')) => Self::ctrl_x(status),
+ Event::Key(Key::Ctrl('e')) => Self::ctrl_e(status),
Event::User(_) => EventExec::refresh_selected_view(status),
Event::Resize { width, height } => EventExec::resize(status, width, height),
_ => Ok(()),
@@ -308,6 +309,11 @@ impl Actioner {
EventExec::event_decompress(status.selected())
}
+ fn ctrl_e(status: &mut Status) -> FmResult<()> {
+ status.display_full = !status.display_full;
+ Ok(())
+ }
+
/// Match read key to a relevent event, depending on keybindings.
/// Keybindings are read from `Config`.
fn char(status: &mut Status, c: char, binds: &Keybindings) -> FmResult<()> {