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

Allow searching FreeTube through the command line #4675

Open
wants to merge 10 commits into
base: development
Choose a base branch
from

Conversation

ChunkyProgrammer
Copy link
Member

@ChunkyProgrammer ChunkyProgrammer commented Feb 13, 2024

Allow searching FreeTube through the command line

Pull Request Type

  • Feature Implementation

Related issue

#4446
#1619

Description

Allow searching FreeTube through the command line by using freetube s="QUERY"

Screenshots

image
A FreeTube instance will be redirected/opened to the search query
image

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 😄

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Feb 13, 2024
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) February 13, 2024 17:59
src/main/index.js Outdated Show resolved Hide resolved
@efb4f5ff-1298-471a-8973-3d47447115dc
Copy link
Member

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

@jessebot
Copy link

jessebot commented Mar 4, 2024

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.

Copy link
Contributor

github-actions bot commented May 1, 2024

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot added PR: merge conflicts / rebase needed and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels May 1, 2024
Copy link
Contributor

github-actions bot commented May 1, 2024

Conflicts have been resolved. A maintainer will review the pull request shortly.

@ChunkyProgrammer ChunkyProgrammer added the PR: waiting for review For PRs that are complete, tested, and ready for review label May 1, 2024
@github-actions github-actions bot added PR: merge conflicts / rebase needed and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels May 4, 2024
Copy link
Contributor

github-actions bot commented May 4, 2024

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Copy link
Contributor

github-actions bot commented May 9, 2024

Conflicts have been resolved. A maintainer will review the pull request shortly.

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added the PR: waiting for review For PRs that are complete, tested, and ready for review label May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: waiting for review For PRs that are complete, tested, and ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants