Focus address bar when creating a new tab and address bar hidden



  • This is for when the address bar is hidden. I'd like to see a setting for new tab which allows it to focus. Right now it only focuses if the address bar is shown. If hidden it requires an extra action to start typing a search.

    So instead of Ctrl+T and Ctrl+L I'd like to just hit Ctrl+T and still see the focused address bar.

    If you open a new tab and then toggle off the address bar, it will actually switch over to the focused one. So it seems to be trying this behavior under certain scenarios.

    0_1538436516096_18e3830f-a747-4881-9faf-af60d970ccd5-image.png


  • - Ambassador -

    @omen_20 If the address bar is hidden, you can use the Quick Command dialogue (F2) to search or open a new tab.

    Settings, Quick Commands, enable "Open pages in new tab," if that's what you prefer.



  • I've managed to achieve the same functionality with an AutoHotkey script:

    #IfWinActive, ahk_exe vivaldi.exe
    ^t::
    Send, ^t
    WinWait, Start Page - Vivaldi
    Send, ^l
    return
    #IfWinActive
    

  • Moderator

    @dbqp YOu should add a hint, that your tip works only on a english Vivaldi UI!



  • @Gwen-Dragon You're right but you can just replace the "Start Page - Vivaldi" window title in the script with the one in your language. You can use the AutoHotkey's Window Spy to obtain the window title or just open a new tab and use Alt+Tab or Win+Tab where the window titles are visible or hover over the Vivaldi application in the taskbar. Nevertheless, this solution is Windows only and also works only if you open the new tab with a shortcut, therefore it would be really nice to have this feature baked in Vivaldi directly.



  • This is a feature I need for my workflow as well.
    I have all UI elements hidden and use hotkeys to make them appear. The floating/hidden address bar option makes this very seamless. But it's very very annoying that when the highlight address bar option is turned on (well really the highlight content option is off) the address bar isn't highlighted at all when you have the pop-out address bar. IMO this is a bug in the highlight content option.



  • Note also that the script given above may give very weird results when the active window is switched by a popup or another program just when you press ctrl+t, this version ensures that when that happens the script won't send the other ctrl+l unexpectedly much later by adding a one-second max time between the ctrl+t and ctrl+l.

    ; Have the address bar open when you press ctrl+t by adding a ctrl+l right after it.
    ; Workaround for bug described here: https://forum.vivaldi.net/topic/30740/
    #IfWinActive, ahk_exe vivaldi.exe
    ^t::
    Send, ^t
    WinWait , Start Page - Vivaldi,, 1
    Send, ^l
    return
    #IfWinActive
    

    Compile this with AutoHotkey, and move either the executable or a shortcut to it to this location to have it startup when you boot your computer:

    C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp


Log in to reply
 

Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.