Open received files from the xfer window
Describe the bug
Hi,
I'm not sure if this option doesn't exist, or if somehow it's bugged for me, but i can't seem to find any option/way to open the received files in the xfer.list buffer, all i can see is basically the options to [p] Purge the finished files and [q] to close the buffer.
There is a script to run a command when a file is received, and was able to easily pipe into another script to open images/audio/video files automatically, but that's kinda not the ideal way.
Is there any way to open the received files directly from the xfer list window or at least to bind a key t pipe them into another script from there (or from the conversation buffer would also work)?
Thanks in advance.
PS: Sorry, i know this is not a bug per-se.
Hi,
There is no way to open received files directly from xfer buffer in WeeChat. So I transform this bug into a feature request.
Damn, ok.
Is there any way/script to just implement a key bind to run a command on a received file? But not automatically, on a key bind. In that case it'd be easy to implement with a local script.
Thanks for the answer!
I think you could add a mouse key that can open the filename with an external tool, but that would work only if your WeeChat is running locally.
The key is able to retrieve text at the point you click, like the word clicked (so the filename), and it can be restricted to the xfer buffer.
See default mouse keys in doc: https://weechat.org/files/doc/weechat/stable/weechat_user.en.html#key_bindings_mouse