Skip to content

Enhanced mpv window closer#12

Merged
KrishnaSSH merged 1 commit intoKrishnaSSH:mainfrom
harsh16coder:main
Aug 3, 2025
Merged

Enhanced mpv window closer#12
KrishnaSSH merged 1 commit intoKrishnaSSH:mainfrom
harsh16coder:main

Conversation

@harsh16coder
Copy link
Copy Markdown
Contributor

As stated in #8 when we close mpv window, it should direct us to the search list instead of of main menu.

I modified modes.go file, specifically gophertubeYouTubeMode() function.

  1. Refactored Search Loop: The function now uses a for loop to keep the user within the search context, instead of exiting after one action.
  2. Reused Search List: Using continue after playing a video automatically redisplays the existing search results, avoiding a new search.
  3. Recursive Search Reset: The escape key (-2) now calls the function recursively to start a new search, improving navigation.

This code works on my machine, let me know if you guys face any issue, let me know in case of any issues.

@KrishnaSSH
Copy link
Copy Markdown
Owner

Thanks for this PR

@KrishnaSSH KrishnaSSH merged commit 2838d07 into KrishnaSSH:main Aug 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants