-
Notifications
You must be signed in to change notification settings - Fork 864
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
Update top nav search input to open new window on shift click/enter #2427
Update top nav search input to open new window on shift click/enter #2427
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be documented in the docs?
Sure! |
There is no doc about the main nav search (coz not much to document right now) |
Please fix the merge conflicts |
Probably auto added by IDE...
f22b67a
to
9ad9005
Compare
@absidue Done~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Tested it with various video, channel and playlist URLs, as well as a bunch of search queries
Not sure about the docs, maybe on the keyboard shortcuts page we could have a small section with special ones? |
Will update doc after this is all working |
Hmmm what's holding this PR's review? |
@ChunkyProgrammer @efb4f5ff-1298-471a-8973-3d47447115dc When you have time could you please review this PR? :) |
Im not sure if im testing this right everything looks to do the same as before. |
I am using this (in my custom build but tested in dev too) on windows and macos |
It worked when I tested it, the biggest change since then was the Electron version upgrade, so that might have broken this PR. |
@absidue I am using my custom build with electron 20 included (but when tested with dev it was electron 16) |
I just tested with |
@efb4f5ff-1298-471a-8973-3d47447115dc It works fine for me too, even when I rebase on the development branch. The new window is opened right on top of the old one, so it might be difficult to tell when a new window has been opened. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes it was difficult to spot that it opened a new window. User error on my end. LGTM
Pull Request Type
Please select what type of pull request this is:
Related issue
N/A
Description
Opening a new window, loading channel and start searching seems wasting time
Browsers have search bar to open search in new tab/window already
Top nav search bar updated to open new window on shift click (on search/go button) or shift enter (on input bar)
Clicking search suggestion with shift still won't open a new window (Can be changed if needed)
Screenshots (if appropriate)
Screen.Recording.2022-07-31.at.11.00.54.mov
Testing (for code that is not small enough to be easily understandable)
Enter
And perform
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.