Add additional environment and dependency info in yazi --debug

This commit is contained in:
realcathode 2024-11-10 12:10:12 +02:00
parent a9a8a190a4
commit ad45181e7f
No known key found for this signature in database
GPG key ID: F8DEDEE2A9163281

View file

@ -48,6 +48,8 @@ impl Actions {
writeln!(s, " VISUAL : {:?}", env::var_os("VISUAL"))?;
writeln!(s, " YAZI_FILE_ONE : {:?}", env::var_os("YAZI_FILE_ONE"))?;
writeln!(s, " YAZI_CONFIG_HOME : {:?}", env::var_os("YAZI_CONFIG_HOME"))?;
writeln!(s, " YAZI_ZOXIDE_OPTS : {:?}", env::var_os("YAZI_ZOXIDE_OPTS"))?;
writeln!(s, " FZF_DEFAULT_OPTS : {:?}", env::var_os("FZF_DEFAULT_OPTS"))?;
writeln!(s, "\nText Opener")?;
writeln!(
@ -91,6 +93,10 @@ impl Actions {
writeln!(s, " 7z : {}", Self::process_output("7z", "i"))?;
writeln!(s, " 7zz : {}", Self::process_output("7zz", "i"))?;
writeln!(s, " jq : {}", Self::process_output("jq", "--version"))?;
writeln!(s, " xclip : {}", Self::process_output("xclip", "-version"))?;
writeln!(s, " wl-clipboard : {}", Self::process_output("wl-copy", "-v"))?;
writeln!(s, " xsel : {}", Self::process_output("xsel", "--version"))?;
writeln!(s, " rustc : {}", Self::process_output("rustc", "--version"))?;
writeln!(s, "\n\n--------------------------------------------------")?;
writeln!(