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

feat: add support for %s and %p as first argument to subprocess commands #515

Closed Akmadan23 closed 3 months ago

Akmadan23 commented 3 months ago

This allows to run the file under cursor (if executable) with :shell %s, :shell ./%s or :shell %p.

I also fixed a bug introduced in #495 which caused a panic when trying to run a file that doesn't exist or a non-executable file.

kamiyaa commented 3 months ago

Looks good, thanks!