Option to Open a URL / Search Results in a New Tab from the Address Bar with "Enter"
-
Since the workflows I described as a workaround earlier hadn't been suggested prior to my post, nor have they been discussed since, it might be easy for readers to overlook them. When I lose data, I look for ways to prevent that from happening again; so I'll describe them once more in greater detail here.
As the goal is to always open a new tab, the key is to not activate the address field directly in a tab we're currently using; create the new tab first. This will prevent any potential loss of data. There is an option that allows us to choose between focusing on the address field or the page content when creating a new tab -- we want to set it for the address field.
With the mouse:
-
Instead of clicking the address field, click the new tab button or double click on the empty space of the tab bar. I find the latter easier personally, as there is a larger space to use.
-
Instead of using the mouse gesture to focus address field, use the mouse gesture to create a new tab.
With the keyboard:
- Instead of using the keyboard shortcut for focusing the address field, use the keyboard shortcut to create a new tab. We don't need to retrain our "muscle memory," whatever keyboard shortcut we're currently using to focus the address field we can add to the shortcuts for the new tab action instead. Vivaldi allows us to assign multiple keyboard shortcuts to any action, so we can keep our current shortcuts for new tab as well.
All of these workflows are an equal amount of work to our previous workflows, there's no additional time or key presses required, just a slight adjustment in the order of things. After the new tab is created, we can enter the URL or search terms however (typing, using copy/paste) and then just press enter. The page loads in the new tab, and we won't accidentally leave a page with unsaved work.
I hope this helps whoever needs it until whenever Vivaldi has the resources to address this request. As an additional safe guard, there is an option to have searches open in a new tab as well.
-
-
@BoneTone said in Option to Open a URL / Search Results in a New Tab from the Address Bar with "Enter":
It's precisely this thought that leads to bugs getting released.
Why? If the coding is correct and if you already have complete code for shift+enter to do exactly what you need meaning open a new tab? Why would the rest of the code change if you do exactly the same thing when program detects only enter instead of shift+enter? It should do the same, already coded, thing.
-
@projektilski said in Option to Open a URL / Search Results in a New Tab from the Address Bar with "Enter":
Why?
Interoperability, expectation of handling similar events, the reasons are too numerous to list. It takes some upper management getting bitten before they will listen to their QA staff on this point. It's also a good technique to drive up your numbers in a bug bash -- Oh, the devs just implemented this little feature, I bet they forgot to run their unit tests for related functionality because they didn't touch that code. Mark it 8 dude.
-
@BoneTone said in Option to Open a URL / Search Results in a New Tab from the Address Bar with "Enter":
@projektilski said in Option to Open a URL / Search Results in a New Tab from the Address Bar with "Enter":
Why?
Interoperability, expectation of handling similar events, the reasons are too numerous to list. It takes some upper management getting bitten before they will listen to their QA staff on this point. It's also a good technique to drive up your numbers in a bug bash -- Oh, the devs just implemented this little feature, I bet they forgot to run their unit tests for related functionality because they didn't touch that code. Mark it 8 dude.
None of this arguments are true. Those things are already coded.
simplistic example:
obj keyCombo = ReadUserKeyComboForNewTabSetting();if ( location == addressBar && pressedKeys == keyCombo)
{
OpenNewTab(urlAddress);
}
else
{
OpenSameTab(urlAddress);
}Now tell me what changes in the code if keyCombo is shift+enter or just enter (what ever is stored in user setting as preferred combination)?
Nothing. -
@projektilski said in Option to Open a URL / Search Results in a New Tab from the Address Bar with "Enter":
None of this arguments are true. Those things are already coded.
simplistic example:Now take your simplistic code and merge it into the actual code that Vivaldi is using to handle the address field. You can make up a simplistic example to fit any argument you want to make (which in this case doesn't even work¹). When considering the complexities of real world software development, not only are the issues I listed (along with many more) true, I've seen them in the wild.
I'll repeat, code doesn't need to change for a new bug to be introduced, an existing one (previously unexposed) to be uncovered, or an old one reintroduced by changes in other code, or new code added. This is just QA 101. There is an entire class of testing, called Regression Testing, the purpose of which is specifically to verify that new code hasn't adversely affected existing (including unchanged) code.
Regression Testing - A type of change-related testing to detect whether defects have been introduced or uncovered in unchanged areas of the software.
As this overview of Regression Testing points out:
The purpose of Regression Testing is to verify if code change introduces issues/defects into the existing functionality. There are so many kinds of possible changes that can impact the existing functionality in an application system. Even the simplest change to the code could impact previously tested functionality.
In large software projects like this, it is very difficult to be certain that even minor changes to code won't have any unforeseen side effects. Any QA Manager worth their paycheck wouldn't sign off on a release that involves changes to a heavily overloaded user input field without running the full suite of automation they've developed for specifically for that, as well as any priority 1 manual tests.
¹ Just as a side note, your code wouldn't work even for this simple idea, isolated from the complexities of the rest of the real world application. Any key press other than the
keyCombo
would cause the page to load in the current tab with whatever is in the address field, meaning one couldn't even type an address, or a search, or a search engine nickname, or a bookmark nickname, or whatever other special inputs the field takes that I'm just not bothering to think about.Even this little bit isn't as simple as you thought.
-
If properly coded my simple example is spot on to demonstrate how simple it is. It is of course not correct as this is just an example not proper implementation. However to demonstrate that there is no difference to the program if it process "enter" or "shift + enter" it is perfect. It can behave the same. The example shows that Enter or Shift+Enter is the same to the program. It is just a simple parameter which is stored in user settings.
Program watches for key presses. If it's in address bar end the key pressed is Enter it loads the the page in the same tab.
There should be no complex coding or troubleshooting to just open it in a new tab (instead of same tab) when it detects key press Enter.
Everything else is a lie and you can quote generic explanations as much as you want. It won't make it true.If I'll have time I will download the source code and check it for myself.
-
Yes yes, how hard is to add just one more option into settings? Pease please, this is basically the only thing that keeps me from using Vivaldi. I am so used to use enter in address bar and it is annoying to forget and get current web page replaced.. This could be also addition to features separating it from chrome and edge...
-
One more vote for this. Like someone else said, it is holding me back from completely migrating to Vivaldi.
-
@Moggie To vote, you must click the "thumbs up" button on the first post in the topic. Comments aren't votes...
-
@Ayespy Thanks. Have now done that.
-
Cent browser has this option
We may just vote here may be Vivladi team will notice..
-
@7twenty said in Option to Open a URL / Search Results in a New Tab from the Address Bar with "Enter":
So here's a question, why does QC have the open in a new tab option with no modifier? What makes that feature special? Shouldn't both QC and address bar use the same confirmation key option?
I'm still curious about the above? No responses yet...
-
@maxtao other chromium-based browsers with this option : maxthon 6, whale browser and you mentionned centbrowser.
-
This is the only reason I don’t use Vivaldi.
-
Windows only.
AutoHotkey Settings.Press Enter for 0.2 seconds to open in a new tab.
Enter::
KeyWait,Enter, T1
if (ErrorLevel){
Send, {LShift Down}{Enter}{LShift Up}
Return
Sleep, 200
Return
}
Send,{Enter}
ReturnIf you don't use the IME, you may have no problem doing this.
Enter::
Send, {LShift Down}{Enter}{LShift Up}
Return -
@shifte said in Option to Open a URL / Search Results in a New Tab from the Address Bar with "Enter":
Windows only.
AutoHotkey Settings.Press Enter for 0.2 seconds to open in a new tab.
Enter::
KeyWait,Enter, T1
if (ErrorLevel){
Send, {LShift Down}{Enter}{LShift Up}
Return
Sleep, 200
Return
}
Send,{Enter}
ReturnIf you don't use the IME, you may have no problem doing this.
Enter::
Send, {LShift Down}{Enter}{LShift Up}
ReturnDa ich ein normaler Nutzer und 77 Jahre alt bin würde ich sehr gerne wissen wie ich das anwenden kann. Eine detaillierte Anleitung wäre sehr hilfreich. Danke im Voraus.
-
@rven
Hello.
All you need to use is "Edit This Script" and "Reload "Edit this Script" in AutoHotKey.
↓Please paste this.#IfWinActive ahk_class Chrome_WidgetWin_1
Enter::
KeyWait,Enter, T1
if (ErrorLevel){
Send, {LShift Down}{Enter}{LShift Up}{LShift Up}
Return
Sleep, 200
Return
}
Send,{Enter}
ReturnSorry, not English UI.
-
If settings : shift+Enter
Send、{LShift Down} {Enter} {LShift Up}If settings: Alt+Enter
Send, !{Enter} -
Hallo,
nach diversen Experimenten hat es geklappt.
Mein Script sieht jetzt so aus:#IfWinActive ahk_class Chrome_WidgetWin_1 Enter:: Send, !{Enter} Return NumpadEnter:: Send, !{NumpadEnter} Return
Es ist aber noch nicht das Optimale:
- Das wirkt sich auch im Edge ungewollt aus!
- Ein einfacher Mausklick auf ein Suchergebnis öffnet aber trotzdem im gleichen Tab.
-
@Gwen-Dragon
Sorry, I'll be careful.1:
#IfWinActive ahk_class Chrome_WidgetWin_1
↓ change
#IfWinActive ahk_exe vivaldi.exe
2:
I couldn't reproduce it.
Maybe, alt key is not up?Please try this.
#IfWinActive ahk_exe vivaldi.exe Enter:: KeyWait,Enter, T1 if (ErrorLevel){ Send, !{Enter} Send, {Alt Up} Return Sleep, 200 Return } Send,{Enter} Return {NumpadEnter}:: Enter:: KeyWait,Enter, T1 if (ErrorLevel){ Send, !{Enter} Send, {Alt Up} Return Sleep, 200 Return } Send,{Enter} Return
↓ or your style/
#IfWinActive ahk_exe vivaldi.exe Enter:: Send, !{Enter} Send, {Alt Up} Return NumpadEnter:: Send, !{NumpadEnter} Send, {Alt Up} Return