davidchalifoux / kaput-cli

The unofficial CLI client for Put.io - Kaput lets you manage your Put.io account from the comfort of your terminal!
https://kaput.sh/
MIT License
69 stars 7 forks source link

kaput files search --interactive #65

Open manicExpressive opened 2 months ago

manicExpressive commented 2 months ago

I'm a daily kaput-cli user and something I do a lot is searching for something in my put.io account so that I can download or delete it.

I'd find it really helpful to have an --interactive flag that would send the results of a search to an interface where I can then select one of the objects to do an action to it. My imagined workflow would be something like:

kaput files search --interactive weezer-live

> [ ] weezer-live-2021.mp4
> [*] weezer-live-2022.mp4

download

Note: This is deeply half baked and while typing this out I realized that I could use tmux's vi-copy-mode[1] to get the core functionality of "search and download file without touching mouse" :D

  1. https://waylonwalker.com/tmux-copy-mode/
davidchalifoux commented 2 months ago

I agree that this would be a much better UX compared to the current copy-and-paste workflow. I actually started the v2 rewrite with Go and Bubbletea with the goal of making the entire program interactive, but I ended up pivoting to Rust for more of a personal challenge and because the non-interactive approach is more extensible for scripting on top of.

If I get the time for it I'll look into this, otherwise PRs are welcome!