Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open a file right from aria2p #109

Open
Bellavene opened this issue Feb 21, 2022 · 5 comments
Open

Open a file right from aria2p #109

Bellavene opened this issue Feb 21, 2022 · 5 comments
Labels
feature Feature request or related

Comments

@Bellavene
Copy link

Would be useful a lot to open a file with a keystroke and even perfect to make shell custom commands binded to a key.

@Bellavene Bellavene added the feature Feature request or related label Feb 21, 2022
@pawamoy
Copy link
Owner

pawamoy commented Feb 22, 2022

Could you expand a bit? What file? What shell commands?

@Bellavene
Copy link
Author

Bellavene commented Feb 22, 2022

Excuse me, wasn’t clear. Open any downloaded file right from top interface, wouldn’t it be nice to open a video without the need to open the folder elsewhere? And bind keys for custom shell commands, so we can for example move files to predefined directories with simple shell commands and etc. etc. etc.

I have binded a key for aria2p terminal window, a bit annoying that you can’t even go to downloads folder from it like from any downloads manager, but you could.

@pawamoy
Copy link
Owner

pawamoy commented Apr 17, 2022

Unfortunately there's absolutely no way to do that from aria2p. We're communicating with the server using the HTTP (JSON-RPC) protocol, so we simply cannot issue shell commands onto the server where the aria2c daemon is running. Of course we could issue commands on the current machine, where aria2p is running, but that would only work when the daemon is also running locally and not on a remote server. If you have suggestions on how to make this work for remote servers as well, please share! In the meantime I'll close this issue.

EDIT: we could argue that aria2p already provides functions that only work locally, so why not add more. Well, indeed, why not. We just need to design a good architecture to handle the situation where the daemon is on a remote server (to replace local ops with no ops and warnings).

@pawamoy pawamoy closed this as completed Apr 17, 2022
@pawamoy pawamoy reopened this Apr 17, 2022
@Bellavene
Copy link
Author

I meant the aria2p top interface, would be absolutely awesome if we could add a keystroke to open the file or its location in ranger or other file manager via a command.

This was referenced Sep 12, 2023
@pawamoy
Copy link
Owner

pawamoy commented Sep 13, 2023

Textual can be used now to re-implement the TUI with it. Happy to review PRs, otherwise I'll get to it when I need to have some fun 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request or related
Projects
None yet
Development

No branches or pull requests

2 participants