summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2024-01-10 15:26:18 +0100
committerqkzk <qu3nt1n@gmail.com>2024-01-10 15:26:18 +0100
commitfa7fae1fbd318988f75d97a45d49a5228254007b (patch)
treee27577b68401036af6f12418d4381d9f232fd99d
parentc30aac4e343df26f9d6508294874574a55d2751e (diff)
FIX ueberzug in dual tab.v0.1.25-dev
-rw-r--r--development.md4
-rw-r--r--src/modes/display/preview.rs7
2 files changed, 8 insertions, 3 deletions
diff --git a/development.md b/development.md
index 2f47f50..e106377 100644
--- a/development.md
+++ b/development.md
@@ -845,6 +845,8 @@ New view: Tree ! Toggle with 't', fold with 'z'. Navigate normally.
- [x] FIX: next_sibling doesn't wrap
- [x] configurable menu colors
- [x] allow more videos format to be previewed
+- [x] FIX ueberzug in dual tab.
+ Use different name per ueberzug tab, allowing multiple previews
- [ ] pre release
- [x] Fix last missing items
- [x] check installation (remove config, cargo build)
@@ -854,8 +856,6 @@ New view: Tree ! Toggle with 't', fold with 'z'. Navigate normally.
## Version 0.1.26
-- [ ] FIX ueberzug in dual tab.
- Use different name per ueberzug tab, allowing multiple previews
- [ ] display all specific binds for every mode with a key ?
- [ ] merge sort & regex, display nb of matches, completion + flag on the fly
- [ ] display number of matches while searching
diff --git a/src/modes/display/preview.rs b/src/modes/display/preview.rs
index 75f89bd..4332cc0 100644
--- a/src/modes/display/preview.rs
+++ b/src/modes/display/preview.rs
@@ -791,10 +791,15 @@ pub struct Ueberzug {
impl Ueberzug {
fn thumbnail(original: PathBuf, kind: UeberzugKind) -> Self {
+ let filename = original
+ .file_name()
+ .unwrap_or_default()
+ .to_string_lossy()
+ .to_string();
Self {
original,
path: THUMBNAIL_PATH.to_owned(),
- filename: "thumbnail".to_owned(),
+ filename,
kind,
ueberzug: ueberzug::Ueberzug::new(),
length: 0,