sxyazi / yazi

💥 Blazing fast terminal file manager written in Rust, based on async I/O.
https://yazi-rs.github.io
MIT License
15.07k stars 341 forks source link

Any way to call shell scripts through yazi keymap.toml? #1233

Closed SafriXV closed 3 months ago

SafriXV commented 3 months ago

Please describe the problem you're trying to solve

I want to integrate yazi as a pywal theme switcher, is there any way to call shell scripts from keymap.toml? ["open", "shell '/path/to/script' --confirm"] doesn't seem to work for me.

Would you be willing to contribute this feature?

Describe the solution you'd like

A way to call and execute shell scripts from keymap.toml or yazi.toml.

Additional context

No response

sxyazi commented 3 months ago

It should work, maybe you can try:

run = "shell 'bash /path/to/script' --confirm"
SafriXV commented 3 months ago

Works perfectly, thank you.

github-actions[bot] commented 2 months ago

I'm going to lock this issue because it has been closed for 30 days. ⏳ This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.