kamiyaa / joshuto

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

xdg_open reset and parsing error after using preview_script #424

Open ransomsec opened 11 months ago

ransomsec commented 11 months ago

I am using the preview_script in my configuration:

[preview]
max_preview_size = 2097152 # 2MB
preview_script = "~/.config/joshuto/preview_file.sh"
  1. The issue is that when trying to view a file's preview, we need to set linemode: all, but this shows an error:

all

  1. Additionally, by default, my xdg_open is set to true. If I disable the preview for a file, xdg_open opens the file in the default app. However, if I use the preview and try to open any file, it asks for the name of the opening app:

xdg