• Browser
  • Mail
  • News
  • Community
  • About
Register Login
HomeBlogsForumThemesContributeSocial

Vivaldi

  • Browser
  • Mail
  • News
  • Community
  • About

Navigation

    • Home
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    We will be doing maintenance work on Vivaldi Translate on the 11th of May starting at 03:00 (UTC) (see the time in your time zone).
    Some downtime and service disruptions may be experienced.
    Thanks in advance for your patience.

    1. Home
    2. Let's talk about Vivaldi
    3. Tips & Tricks
    4. [CC] Close Tab & Switch to Above/Below Tab for Automate Vertical Tabbar

    [CC] Close Tab & Switch to Above/Below Tab for Automate Vertical Tabbar

    Tips & Tricks
    1
    1
    648
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dude99
      last edited by dude99

      This CC tutorial is complement to my Automate Floating Vertical Tabbar for Mouse & Keyboard CSS mod. So, what does it do?

      1. Add Close tab & switch to above/below tab (a.k.a. next/previous order tab) commands.

      2. Auto-reveal tabbar from hidden or minimized (favicon) state when closing Active tab.

      3. Highlight Active tab before closing tab, then auto-hide/minimized tabbar after closed tab.

      LSS, it make closing active tab less confusing & let you take control of consecutive active tab after closing current active tab. 😉


      How to Command Chains?

      Please read this tutorial: https://help.vivaldi.com/desktop/shortcuts/command-chains/


      ReadMe

      1. First, go to Settings > Tabs > Close Tab Activation, select ONLY Activate Above in Tab Order. Remember to also uncheck Always Activate Related Tab.

        closeTabActivation.png

      2. Next, create 2 new CC with below code:

        Close Tab & Switch to Above Tab

        CloseThenPreviousTab.png

        Close Tab & Switch to Below Tab

        closeTabNextTab.png

      3. Finally, setup 2 new keyboard shortcut or mouse gesture with above CC:

        chainsKb.png

      4. Personally I use 1 & 2 for switch to above/below tab, thus it's very convenience for me to setup Alt+1 & Alt+2 for Close & switch to above/below tab, just like in good old Opera Presto.

      5. This CC shortcuts should also work with top/bottom position automate tabbar as long as you are using :focus-within to setup automate tabbar, because this CC using Focus Tab bar command to reveal the tabbar from hidden/minimized state. 💡

      6. If you are not using Automate (auto-hide/minimized) Tabbar, you can simplify the CC formula by remove Focus Tab bar & Deselect Tabs. You might wanna keep Focus Page because it improved access to the web content after closing a tab.


      Quirk/Limitation

      Obviously, you won't be able to access Always Activate Related Tab & Activate Recently Used Order close tab behavior, but it's a trade-off for better control of active tab. You will know exactly which tab will be activated after closing current active tab, no more unpredictable & confusing guesswork after you closed current tab. cheers

      Then, click X button or Ctrl+W to close active tab will always switch to above tab. If you preferred always switch to below tab after closing active tab, then do this:

      1. Select Activate Below in Tab Order in Settings.

      2. Swap the 2 CC formula around...

      3. Replace the first command of Move Active Tab Forward with Move Active Tab Backward.


      That's all for this CC tutorial. Hope this will help u enjoy Automate Vertical Tabbar a lot more! 😃

      P/S Currently I'm working on Close Tab to 4 ways active tab (above/below/recent/newest) CC. It might render this CC obsolete, but everyone preferred something slightly different, so this tutorial might still be useful for someone... LOL

      EDIT: Close Tab to 4 ways active tabs done it completed, get it here: https://forum.vivaldi.net/post/511470

      Sorry, I'm currently hiatus from updating any of my CSS mod until further notice...
      1 Reply Last reply Reply Quote 0
      Loading More Posts
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      • 1 / 1
      • First post
        Last post

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

      Copyright © Vivaldi Technologies™ — All rights reserved. Privacy Policy | Code of conduct | Terms of use | Vivaldi Status