Option to Open a URL / Search Results in a New Tab from the Address Bar with "Enter"
-
@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
. -
Honor to @7twenty! Thank you! You saved my life!
For anyone who want to open address bar in new tab by default. Follow these steps:
- Make a copy of
C:\Program Files\Vivaldi\Application\6.1.3035.75\resources\vivaldi\bundle.js
to a temporary folder which you have edit permission, for example:C:\aaa\
. If you installed vivaldi in another folder, you will be able to find the6.1.3035.75\
(or other version number depends on which version of vivaldi you installed) folder in the same folder as the executable file:vivaldi.exe
. - Open the bundle.js in text editor and replace
inCurrent:!o
withinCurrent:o
[this will swap the address bar hotkey option: open Addressbar URL in new tab by default and open URL in current tab if 'Shift'/'Alt' pressed]. Save the changes. - Copy the modified
bundle.js
back to\Vivaldi\Application\6.1.3035.75\resources\vivaldi\bundle.js
. You may need administrator privilege to do so. - Restart Vivaldi. Enjoy!
@7twenty said in Option to Open a URL / Search Results in a New Tab from the Address Bar with "Enter":
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. - Make a copy of
-
@nikitawin said in Option to Open a URL / Search Results in a New Tab from the Address Bar with "Enter":
Honor to @7twenty! Thank you! You saved my life!
For anyone who want to open address bar in new tab by default. Follow these steps:
- Make a copy of
C:\Program Files\Vivaldi\Application\6.1.3035.75\resources\vivaldi\bundle.js
to a temporary folder which you have edit permission, for example:C:\aaa\
. If you installed vivaldi in another folder, you will be able to find the6.1.3035.75\
(or other version number depends on which version of vivaldi you installed) folder in the same folder as the executable file:vivaldi.exe
. - Open the bundle.js in text editor and replace
inCurrent:!o
withinCurrent:o
[this will swap the address bar hotkey option: open Addressbar URL in new tab by default and open URL in current tab if 'Shift'/'Alt' pressed]. Save the changes. - Copy the modified
bundle.js
back to\Vivaldi\Application\6.1.3035.75\resources\vivaldi\bundle.js
. You may need administrator privilege to do so. - Restart Vivaldi. Enjoy!
@7twenty said in Option to Open a URL / Search Results in a New Tab from the Address Bar with "Enter":
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.Hello! Can you or somebody else verify that this solution still works? Because I don't want to break Vivaldi by mistake. And which checkbox should I activate before changing the code in the bundle.js file?
Thank you!
- Make a copy of
-
@kavulio said in Option to Open a URL / Search Results in a New Tab from the Address Bar with "Enter":
Can you or somebody else verify that this solution still works?
Still working here for me, running v6.1.3035.204.
So long as you keep a backup of the original file, if you do manage to break something, just restore it.
@kavulio said in Option to Open a URL / Search Results in a New Tab from the Address Bar with "Enter":
And which checkbox should I activate before changing the code in the bundle.js file?
Makes no difference, it just changes what it does. So instead of using Shift+Enter to open in a new tab, now it opens in the same tab.
-
bump.
5 years of applying workarounds of all sorts, and still no interest from the devs to implement this simple feature request.
I'm glad editingbundle.js
still work but we should have a native setting to turn this on/off.