Closed moshpirit closed 2 months ago
Hi, this is an already supported feature. You can run your shell script through the shell
command:
{ on = "<C-s>", run = "shell 'bash /path/to/fsend' --block --confirm" }
Doc of shell
command: https://yazi-rs.github.io/docs/configuration/keymap#manager.shell
Closing as already supported.
Hi again, my issue wasn't that much about making my script to work when running yazi, but about to officially support it (maybe with a plugin). I only shared the script just in case it somehow helps, the script is not intended to work in yazi as it is :sweat_smile:. In fact, it doesn't even work when running it in the shell mode (it runs in the background, but it is supposed to be interactive).
but about to officially support it (maybe with a plugin)
Are you referring to including it as a builtin plugin in Yazi? Or as a third-party plugin officially maintained by us?
it doesn't even work when running it in the shell mode (it runs in the background, but it is supposed to be interactive)
Have you added the --block
option to run in block mode? Block mode behaves exactly like your actual shell—if something works in your shell, it will work in Yazi.
Are you referring to including it as a builtin plugin in Yazi? Or as a third-party plugin officially maintained by us?
I meant including a builtin plugin in Yazi. I think it is a great feature to add
Have you added the --block option to run in block mode? Block mode behaves exactly like your actual shell—if something works in your shell, it will work in Yazi.
Yes, I have. Both with and without the --block
option
Sorry, I'm afraid I can't accept this because it would require adding kdeconnect-cli
as a dependency for Yazi, and recommending all users to install it in the documentation/downstream packaging.
Also it's not available on Windows platform, which would introduce new cross-platform issues - all dependencies for Yazi should be cross-platform since Yazi itself is cross-platform.
Oh, I didn't think about this. You are absolutely right. Maybe then a third-party plugin officially maintained by you?
Added to https://github.com/yazi-rs/plugins/issues/9
To set expectations, I've never used kdeconnect-cli
myself, so it might take some time to figure out how it works.
Thanks a lot!
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.
yazi --debug
outputPlease describe the problem you're trying to solve
I would like to be able to send files with KDE connect.
Would you be willing to contribute this feature?
Describe the solution you'd like
I created this script and I think it would be very cool to integrate it with yazi by selecting the files there and with a shortcut selecting the device and sending them.
Additional context
No response
Validations