FreeTube
FreeTube copied to clipboard
Allow searching FreeTube through the command line
Allow searching FreeTube through the command line
Pull Request Type
- [x] Feature Implementation
Related issue
https://github.com/FreeTubeApp/FreeTube/issues/4446 https://github.com/FreeTubeApp/FreeTube/issues/1619
Description
Allow searching FreeTube through the command line by using freetube s="QUERY"
Screenshots
A FreeTube instance will be redirected/opened to the search query
Testing
For my linux distro, I built FreeTube, installed the deb and ran the command. It's probably the same for Windows and MacOS (might need to run cmd where freetube install is located/add freetube to path variable for windows?)
Desktop
- OS: Linux Mint
- OS Version: 21.3
- FreeTube version: 0.19.1
Additional context
I don't think this is something that I'd personally use so if anyone that requested this feature has any additional suggestions please let me know :smile:
Pinging people that have opened or commented on issues related to this subject to get some suggestions how to improve this:
@romanoce @sebma @RodneyRabbit @rhysday @Salamimonster @qupear @JonnyCodewalker @NoxInmortus @kajdo @jessebot @Masacroso @Trung0246
I had originally commented on a different issue about backups from the command line and I think that's how my involvement got started here. I'll give some suggestions based on both though, since this issue is about searching from cli specifically.
For searching
I agree with @ChunkyProgrammer, it would be nice to see something like:
freetube --search "mr. beast"
# the same os --search but shorter
freetube --search "mr. beast"
And then it should launch freetube with the given search query. This feature would mostly be useful in that it would allow people to launch freetube searches from the cli, and then could also be done via TUI text editors like vim/nvim as well, which could make looking up a tutorial easier.
For backups
It would be great if we could do something like the following:
freetube --backup --local /path/to/backup
# same as --backup --local, but shorter flag
freetube -b -l /path/to/backup
And then it should copy the subscriptions, playlists, and history to the path of a user's choosing. That would satisfy local backups.
If I were to go further, it would be cool if Nextcloud and/or S3 backups were possible:
freetube --backup --s3
Then it would use exported S3 credentials, or the credentials in the local AWS or Minio config file.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
Conflicts have been resolved. A maintainer will review the pull request shortly.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
Conflicts have been resolved. A maintainer will review the pull request shortly.
This pull request has conflicts, please resolve those before we can evaluate the pull request.
Conflicts have been resolved. A maintainer will review the pull request shortly.
Ehm... Merging is blocked? No one assigned? Sorry, but I am not familar with this development jargon. Is the feature implemented and testable? Can I help in any way?