Option to Open a URL / Search Results in a New Tab from the Address Bar with "Enter"
-
Hi, apologies if I'm on the wrong track with this reply. I've just installed vivaldi to try it out against my waterfox and firefox alternatives( one of which has a bad memory leak I feel ). So far it feels good and I like the interface but I found I could not click a search result and have it open in a new tab. I searched this forum and found similar requests. The tick box "open search in new tab" is useful in keeping search results safe in a separate tabbed window but I also use duckduckgo as my search engines in both search boxes. In the settings you can just click "open search result in new tab", other engines may offer similar. This is useful as the combination allows an independent tab for the search results and any clicked search result links will open the relevant page in a new tab, and as many tabs as are requested. This works well for myself and may be useful to others, I prefer this to memorising keystroke combinations etc. Now I have a similar setup to waterfox etc with other extra features that are a bonus, it's nice so far!
-
@rgcon0809 Полностью согласен! В Maxthon эта функция реализована. Просто она есть!
Нет других браузеров с такой функцией.
А это ОЧЕНЬ удобно! -
Ich nutze den Slimjet Browser. Der hat diese Funktion standardmäßig.
-
Many thanks to Shifte. I havn't recognized this could be done by Autohotkey. I wrote another script for this issue and don't need to press Enter for more than 0.2s. Please use Window Spy in Autohotkey to get the values you may need to modify the code.
/* What we usually do is to click in the address bar/search bar, or press F8, then input address/keywords and hit enter. This script detect left click and F8, then replaces Enter and numpad Enter with Alt+Enter when nessecary. My Vivaldi looks like default view of Chrome or Firefox. If yours does not, you may need to change the creteria accordingly. */ #Persistent #SingleInstance force #NoEnv SetWorkingDir %A_ScriptDir% DetectHiddenWindows off /* Determine if left click happens in the address bar or search bar. Modify the creteria accroding to your own browser configurations. My creteria: 1. Mouse click in the right height (relative to Vivaldi windows) Y-coordinate between 45 and 67 works for me. Change the values according to your situation. 2. Cursor type is IBeam 3. Not in the New Tab If the title is not "New Tab", the script may not work. For example, in private windows. But you could modify the script to make it work. 4. Not inputing with an IME other than default English. Change "SoPY_Comp" into the class name of your IME. */ OBflag:=0 ;OB for omnibox ~LButton:: MouseGetPos,mX,mY,wID WinGet,wName,ProcessName,ahk_id %wID% If (wName="vivaldi.exe") { Send, {NumpadClear} MouseGetPos,mX,mY,wID WinGetTitle,wTitle,ahk_id %wID% If (mY>45 and mY<67 and A_Cursor="IBeam" and wTitle!="New Tab - Vivaldi") OBflag:=1 Else OBflag:=0 } Else OBflag:=0 return #IfWinActive, ahk_exe vivaldi.exe Enter:: NumpadEnter:: IfWinNotExist, ahk_class SoPY_Comp { If OBflag=1 { Send, !{Enter} OBflag:=0 } Else { Send, {Enter} OBflag:=0 } } else { Send, {Enter} } return ~F8:: OBflag:=1 return
@shifte said in Option to Open a URL / Search Results in a New Tab from the Address Bar with "Enter":
I made a mistake on the bottom half of the top.
↓fixed.#IfWinActive ahk_exe vivaldi.exe Enter:: KeyWait,Enter, T1 if (ErrorLevel){ Send, !{Enter} Send, {Alt Up} Return Sleep, 200 Return } Send,{Enter} Return NumpadEnter:: KeyWait,NumpadEnter, T1 if (ErrorLevel){ Send, !{NumpadEnter} Send, {Alt Up} Return Sleep, 200 Return } Send,{NumpadEnter} Return
-
@xieteng thank you for sharing ! this works great when the browser is in fullscreen, and this is already a major improvement in my case.
I still hope for a native solution from the devs though... -
@cannibalox, you're welcome. Happy to know that my script could help.
You said it works in fullscreen, did it work in window mode? If not, you could change the values in "mY>45 and mY<67" to solve the problem. I do not use Vivaldi in fullscreen and the script works fine. Or you can try F8 to locate the address bar.
I agree that a native solution would be the best, but I haven't seen any progress on the issue for years. T_T
-
Oopsy!
I was wrong.
Write as follows.Enter:: KeyWait,Enter, T0.2 if (ErrorLevel){ Send, {LShift Down}{Enter}{LShift Up}{LShift Up} } else{ Send,{Enter} } Return
-
So still no option to open new tab from address bar with simple "Enter" key?
What an epic fail. -
Abandon all hope ye who thinks this will be implemented. I just use Ctrl+T first to open new tab. I don't think devs even visit this forum, only ambassadors who forward things to devs.
@Pesala maybe you could do something about getting this implemented? We've been waiting few years.... -
@kapela We have very little if any influence on what gets implemented first. There are over 5,000 feature requests. This one has a simple workaround — just use Shift+Enter or use the Quick Commands dialog (F2).
-
@pesala
With shift+enter you can't use "Paste & Go" to open it in new tab, you need to first paste it and then shift+enter (or open new tab first and then paste & go), essentially making this function useless.There are over 5,000 feature requests
And the devs want to create another SeaMonkey/Opera clone instead of focusing on internet browsing features.
-
@kapela They are making a browser for the millions of users who never wanted Opera12 to go away. This is in no way similar to SeaMonkey, as it happens, and unrelated to any current iteration of Opera.
-
This paste and go feature request would work nicely if this feature request was implemented.
Right-click in address bar > Paste and go.
2 clicks, click anywhere in the address bar instead of the tiny new tab button. So many bonuses... yet still we wait...
-
@7twenty If I understand your use case correctly, this is already possible with the use of Command Chains:
- New Tab
- Delay
500
(increase if needed) - Focus Address Field (not needed if focused by default)
- Paste and Go
The command chain can be added to a context menu, as well as being assigned to a keyboard shortcut or a mouse gesture.
-
@pafflick said in Option to Open a URL / Search Results in a New Tab from the Address Bar with "Enter":
this is already possible with the use of Command Chains:
Indeed it is. Not quite as streamlined as the new tab page has to open first, but definitely does the job.
You really have to think slightly outside the box when it comes to all options that chains can offer.
Thanks for the tip.
Still would like the original request added at some stage though
-
-
Because of the most recent post about this same issue it got me looking at this again.
From what i can tell this is the code from
bundle.js
that deals with the modifier keys:o = n.shiftKey && "shift" === this.props.prefValues[D.kAddressBarUrlOpenShortcut] || n.altKey && "alt" === this.props.prefValues[D.kAddressBarUrlOpenShortcut] || jC,
So with my basic understanding of how this works, it sets the modifier key to alt or shift if the text string matches the string that is set in
D.kAddressBarUrlOpenShortcut
(variable set in settings).Now again, in an extremely simplistic view of this, all that needs to happen is to ignore this code. And as confirmation of that you can completely bypass the modifier key and have tabs open in a new tab by changing the line:
inCurrent: !o,
toinCurrent: o,
Which basically just swaps what modifier+enter does (open in current tab or not)So all that needs to happen is the checkbox added in settings, and some code to change the
!o
too
based on that setting. And then the requisite testing to ensure things aren't broken.This is quite possibly a backwards way of looking at it and achieving the outcome required, but i'm just a tinkerer of this stuff. I'm sure someone who knows what they're doing could have figured this out in 5mins in a much cleaner way.
For now i'm running with this modification to the
bundle.js
to see what/if it breaks anything. -
So i've been running with the above change for the past month, and it's been going great with no issues to report.
Now the only thing that doesn't have the option to open in a new tab is Paste and go from the address bar context menu, but that can be worked around using the command chain mentioned in the last few posts.
I can finally not have to decide if I want to open Quick commands or the address bar, or accidently pressing Enter instead of Shift+Enter... the way it should be.
And ALT+D can go back to being the shortcut for the address bar instead of Quick commands.
So long as Vivaldi don't do some changes that may screw this up, or my script to change the value stops working, this seems to be a viable solution until/if it ever gets implemented natively.
-
I already explained that requested feature is extremely simple to implement and that there is no sane and rational excuse for not doing it.
-
Pls help make improvement for this feature.
-
bumping this feature request. Please let us open a new tab from the address bar using
ENTER
.