summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index e0fa5bb..a21b368 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -203,6 +203,8 @@ pub struct Keybindings {
pub symlink: char,
/// Preview with bat
pub preview: char,
+ /// Display a stack of visited directories
+ pub history: char,
}
impl Keybindings {
@@ -284,6 +286,9 @@ impl Keybindings {
if let Some(preview) = yaml["preview"].as_str().map(|s| s.to_string()) {
self.preview = preview.chars().next().unwrap_or('P');
}
+ if let Some(history) = yaml["history"].as_str().map(|s| s.to_string()) {
+ self.history = history.chars().next().unwrap_or('H');
+ }
}
/// Returns a new `Keybindings` instance with hardcoded values.
@@ -314,6 +319,7 @@ impl Keybindings {
sort_by: 'O',
symlink: 'S',
preview: 'P',
+ history: 'H',
}
}
}