Command Chains

This post is also available in: 日本語 Русский Français Español Deutsch Српски Українська Dansk Português Български 简体中文

A Command Chain is a group of commands executed in a sequence. For example, instead of toggling on first the Reader View and then Fullscreen Mode to focus on what you’re reading, with Command Chains you can do it with a single shortcut in one go.

You can trigger a chain from Quick Commands, assign it a custom Keyboard Shortcut or a Mouse Gesture, or add a button to one of the Toolbars

Create a Command Chain

  1. Go to Settings > Quick Commands > Command Chains.
  2. Click on Add Command Chain.
  3. Give the new chain a name.
  4. Change Command 1 to an action you want to execute first.
  5. Click on Add Command on the right side to add the next command in the sequence.
  6. When you’re done adding the commands, click Test Chain to confirm that it works as expected.

Use the command Delay between other commands to give the previous command time to be executed before applying the next command. Delay time is measured in milliseconds and can be adjusted.

To reorder commands in the chain:

  1. Hover over the command.
  2. When you see a Move cursor, drag the command to its new location in the sequence.

Create a new Command Chain from an existing chain

When you want to create a new chain which is very similar to an existing one, you can clone the chain and edit it to make a new Command Chain.

  1. Right-click on the existing chain.
  2. Select Clone Command Chain.
  3. Change the cloned chain’s name.
  4. Edit the commands in the chain.

Use Command Chains

Quick Commands

Once a new Command Chain has been created you can immediately execute it from Quick Commands.

  1. Open Quick Commands (F2 / ⌘ E).
  2. Type in the chain’s name.
  3. Press Enter to execute it.

Keyboard shortcuts

Before you can execute a Command Chain using a Keyboard Shortcut, you’ll need to assign a new shortcut for the new chain.

  1. Go to Settings > Keyboard Shortcuts > Chains.
  2. Find the chain you want to assign a keyboard shortcut for and click on it.
  3. Press the keyboard shortcut on your keyboard.

Once the chain is assigned a keyboard shortcut, you can use it anywhere to run the sequence of commands.

Mouse gestures

Before you can execute a Command Chain using a Mouse Gesture, you’ll need to assign a new gesture for the new chain.

  1. Go to Settings > Mouse > Gesture Mapping.
  2. Click on the Add button New Gesture button.
  3. Find the Command Chain from the drop-down menu or search for it by name.
  4. Click Next.
  5. Draw a new gesture in the highlighted area using primary (left) mouse button.
  6. Click Save Gesture.

Once the chain is assigned a Mouse Gesture, you can use it anywhere to run the sequence of commands.

Toolbar button

To add a Command Chain as a button to a toolbar, so you can execute it with one click:

  1. Go to the Vivaldi menu > View > Customize Toolbar.
  2. Select Command Chains from the drop-down menu in the Toolbar Editor.
  3. Click and drag the chain to the Address Bar or Status Bar.

Edit Command Chains

To update a chain:

  1. Go to Settings > Quick Commands > Command Chains.
  2. Select the chain you want to edit.
  3. Make the changes.

The chain will be updated automatically.


Delete Command Chains

To delete a chain:

  1. Go to Settings > Quick Commands > Command Chains.
  2. Select the chain you want to delete.
  3. Press Delete on your keyboard or click on delete button Delete Command Chain at the bottom of the list of Command Chains.

Examples of Command Chains

To get some inspiration for what kind of chains you can set up, check out the Command Chains Vivaldi Community members have shared on the Forum – Command Chain Recipes.

Was this page helpful?