diff options
author | Kyohei Uto <im@kyoheiu.dev> | 2022-10-26 05:26:27 +0900 |
---|---|---|
committer | Kyohei Uto <im@kyoheiu.dev> | 2022-10-26 05:26:27 +0900 |
commit | d5bcb13b0c510dc2dce312b9b5b3676228e10ed4 (patch) | |
tree | 161bae0fc7144367fd5995c66ea3ec71c496ab09 /src/layout.rs | |
parent | aafb063028fed5c0125373c0ce4bcbfea05b0859 (diff) |
Add horizontal image preview
Diffstat (limited to 'src/layout.rs')
-rw-r--r-- | src/layout.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/layout.rs b/src/layout.rs index f1a1528..b9c093d 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -179,7 +179,9 @@ impl Layout { self.terminal_row - BEGINNING_ROW ) } - Split::Horizontal => todo!(), + Split::Horizontal => { + format!("--size={}x{}", self.preview_width, self.terminal_row) + } }; let file_path = item.file_path.to_str(); |