kamiyaa / joshuto

ranger-like terminal file manager written in Rust
https://crates.io/crates/joshuto
GNU Lesser General Public License v3.0
3.4k stars 150 forks source link

Weird sequences in preview #364

Closed on3iro closed 1 year ago

on3iro commented 1 year ago

Hey,

I just installed joshuto and the preview script. Standalone the preview-script is working fine, seemingly using bat to preview most of my text files. However, when used in conjunction with joshuto, the output looks as follows:

image

Here's my config:

numbered_command = false

use_trash = false
watch_files = true
xdg_open = false
xdg_open_fork = false

[display]
# default, hsplit
mode = "default"

automatically_count_files = false
collapse_preview = true
# ratios for parent view (optional), current view and preview
column_ratio = [1, 4, 4]
scroll_offset = 6
show_borders = true
show_hidden = true
show_icons = true
tilde_in_titlebar = true
# none, absolute, relative
line_number_style = "relative"

[display.sort]
# lexical, mtime, natural, size, ext
sort_method = "natural"
case_sensitive = true
directories_first = true
reverse = false

[preview]
max_preview_size = 2097152                           # 2MB
preview_script = "~/.config/joshuto/preview_file.sh" # make sure it's marked as executable

[tab]
# inherit, home, root
home_page = "home"   

I'm on OSX, if that matters

Any idea what I could be doing wrong?

Thanks in advance!

DLFW commented 1 year ago

Hi! #310? Use the latest release 0.9.5 or a build from repo in case you're using an older version.

on3iro commented 1 year ago

Ah that's probably it - thanks for the quick answer! - i'll give the newest version a shot and report back

on3iro commented 1 year ago

worked like a charm! :+1: