kamiyaa / joshuto

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

Joshuto exits with error on "open_with" action attempt without a target #546

Open steven-reina opened 2 weeks ago

steven-reina commented 2 weeks ago

Description:

Using joshuto, when attempting to open an empty target (on an empty directory) with an arbitrary command (using the native :open_with command), it perhaps handles this error case by exiting joshuto altogether, with a 101 exit code. This error is reproducible, regardless of the platform it's run on.

System information:

How to reproduce:

Expectation:

I don't believe this to be the intended way to handle such case, so it should simply print some warning in the information/command bar, or maybe nothing at all, as is the case for the :open command under the same circumstances, as of right now.