Actions Reference
Every CodeVideo project is a list of actions. Each action is a { "name": "...", "value": "..." } object: the name says what happens, the value says what to do it with. Send a list of them to the API (see the Quick Start) or render them locally with the CLI.
Use the table of contents to jump to a domain, or link to an action directly, e.g. /actions#editor-type.
Author
What the narrator says, and pauses between steps.
Editor
Typing, keystrokes, selection, scrolling and the context menu in the editor.
Type in the currently active editor.
Value: The text to type in the editor.
Save the currently active editor.
Value: The file to save.
Move the editor caret up one row.
Value: The number of rows to move up.
Move the editor caret down one row.
Value: The number of rows to move down.
Move the editor caret left one column.
Value: The number of columns to move left.
Move the editor caret right one column.
Value: The number of columns to move right.
Press the Enter key in the editor.
Value: The number of times to press Enter.
Press the Tab key in the editor.
Value: The number of times to press Tab.
Hold Shift and move the editor caret left.
Value: The number of columns to move left.
Hold Shift and move the editor caret right.
Value: The number of columns to move right.
Hold Shift and move the editor caret down.
Value: The number of rows to move down.
Hold Shift and move the editor caret up.
Value: The number of rows to move up.
Press Cmd+D in the editor.
Value: The number of times to press Cmd+D.
Press the Backspace key in the editor.
Value: The number of times to press Backspace.
Press the Space key in the editor.
Value: The number of times to press Space.
Highlight code in the editor.
Value: The code to highlight.
Delete the current line in the editor.
Value: The line to delete.
Hold Command and move the editor caret left.
Value: The number of columns to move left.
Hold Command and move the editor caret right.
Value: The number of columns to move right.
Hold Command and press D in the editor.
Value: The number of times to press Cmd+D.
Hold Command and press C in the editor.
Value: The number of times to press Cmd+C.
Hold Command and press V in the editor.
Value: The number of times to press Cmd+V.
Hold Shift and move the editor caret down.
Value: The number of rows to move down.
Hold Shift and move the editor caret up.
Value: The number of rows to move up.
Scroll the editor up.
Value: The number of pixels to scroll up.
Scroll the editor down.
Value: The number of pixels to scroll down.
File explorer
Creating, opening, renaming, moving and deleting files and folders, plus the explorer's menus and inputs.
Set file contents of a file in the file explorer.
Value: The contents to set for the file.
Sets the caret position of a file in the file explorer.
Value: The file name, row, and col to set the caret position.
Create a file in the file explorer.
Value: The name of the file to create.
Open a file in the file explorer.
Value: The name of the file to open.
Close a file in the file explorer.
Value: The name of the file to close.
Rename a file in the file explorer.
Value: The old and new names for the file.
Delete a file in the file explorer.
Value: The name of the file to delete.
Move a file in the file explorer.
Value: The old and new paths for the file.
Copy a file in the file explorer.
Value: The old and new paths for the file.
Create a new folder in the file explorer.
Value: The name of the folder to create.
Expand a folder in the file explorer.
Value: The name of the folder to expand.
Collapse a folder in the file explorer.
Value: The name of the folder to collapse.
Rename a folder in the file explorer.
Value: The old and new names for the folder.
Delete a folder in the file explorer.
Value: The name of the folder to delete.
Toggle a folder in the file explorer.
Value: The name of the folder to toggle.
Move a folder in the file explorer.
Value: The old and new paths for the folder.
Copy a folder in the file explorer.
Value: The old and new paths for the folder.
Show the new file input in the file explorer.
Value: The position to show the new file input.
Show the new folder input in the file explorer.
Value: The position to show the new folder input.
Hide the new file input in the file explorer.
Value: The position to hide the new file input.
Hide the new folder input in the file explorer.
Value: The position to hide the new folder input.
Type in the new file input in the file explorer.
Value: The text to type in the new file input.
Clear the new file input in the file explorer.
Value: The position to clear the new file input.
Type in the new folder input in the file explorer.
Value: The text to type in the new folder input.
Clear the new folder input in the file explorer.
Value: The position to clear the new folder input.
Rename a file in draft state in the file explorer.
Value: The old and new names for the file.
Rename a folder in draft state in the file explorer.
Value: The old and new names for the folder.
Type in the rename file input in the file explorer.
Value: The text to type in the rename file input.
Type in the rename folder input in the file explorer.
Value: The text to type in the rename folder input.
Enter the new file input in the file explorer.
Value: The number of times to press enter in the new file input - should typically be '1'.
Enter the new folder input in the file explorer.
Value: The number of times to press enter in the new folder input - should typically be '1'.
Enter the rename file input in the file explorer.
Value: The number of times to press enter in the rename file input - should typically be '1'.
Enter the rename folder input in the file explorer.
Value: The number of times to press enter in the rename folder input - should typically be '1'.
Mouse
Moving the mouse to parts of the IDE, and left or right clicking.
Move the mouse to the middle of the file explorer.
Value: The number of times to move to the middle of the file explorer - should typically be '1'.
Move the mouse in the editor.
Value: The number of times to move in the editor.
Move the mouse over an editor tab.
Value: The file name of the tab to move over.
Move the mouse over the close button of an editor tab.
Value: The name of the tab to move over.
Move the mouse in the terminal.
Value: The number of times to move in the terminal.
Move the mouse over a terminal tab.
Value: The name of the tab to move over.
Move the mouse over the close button of a terminal tab.
Value: The name of the tab to move over.
Move the mouse over a file in the file explorer.
Value: The name of the file to move over.
Move the mouse over a folder in the file explorer.
Value: The name of the folder to move over.
Move the mouse to specific coordinates in pixels.
Value: The coordinates in pixels to move to.
Move the mouse to specific coordinates in percent.
Value: The coordinates in percent to move to.
Move the mouse to specific coordinates.
Value: The coordinates to move to. See the codevideo-mouse library on how this string is generated.
Move the mouse performs a left click.
Value: The number of times to perform a left click - should typically be '1'.
Move the mouse performs a double left click.
Value: The number of times to perform a double left click - should typically be '1'.
Move the mouse performs a triple left click.
Value: The number of times to perform a triple left click - should typically be '1'.
Move the mouse performs a right click.
Value: The number of times to perform a right click - should typically be '1'.
Move the mouse performs a double right click.
Value: The number of times to perform a double right click - should typically be '1'.
Move the mouse performs a triple right click.
Value: The number of times to perform a triple right click - should typically be '1'.
Terminal
Typing and keystrokes in the terminal, and setting its output, prompt and working directory.
Opens the terminal.
Value: The number of times to open the terminal - should typically be '1'.
Types in the terminal.
Value: The text to type in the terminal.
Arrow up in the terminal. Shows the previous command, if any.
Value: The number of times to press arrow up in the terminal - should typically be '1'.
Arrow down in the terminal.
Value: The number of times to press arrow down in the terminal.
Arrow left in the terminal.
Value: The number of times to press arrow left in the terminal.
Arrow right in the terminal.
Value: The number of times to press arrow right in the terminal.
Enter key in the terminal. Submits the command.
Value: The number of times to press enter in the terminal - should typically be '1'.
Tab key in the terminal.
Value: The number of times to press tab in the terminal - should typically be '1'.
Shift + arrow right in the terminal.
Value: The number of times to press shift + arrow right in the terminal - should typically be '1'.
Shift + arrow left in the terminal.
Value: The number of times to press shift + arrow left in the terminal - should typically be '1'.
Backspace key in the terminal.
Value: The number of times to press backspace in the terminal - should typically be '1'.
Space key in the terminal.
Value: The number of times to press space in the terminal - should typically be '1'.
Command + arrow left in the terminal.
Value: The number of times to press command + arrow left in the terminal - should typically be '1'.
Command + arrow right in the terminal.
Value: The number of times to press command + arrow right in the terminal - should typically be '1'.
Command + c in the terminal.
Value: The number of times to press command + c in the terminal - should typically be '1'.
Command + v in the terminal.
Value: The number of times to press command + v in the terminal - should typically be '1'.
Sets the output in the terminal.
Value: The output to set in the terminal. Used to simulate terminal output.
Sets the prompt in the terminal.
Value: The prompt to set in the terminal. Can be used for custom terminal prompts.
Sets the present working directory in the terminal.
Value: The directory to set as the present working directory in the terminal.
External
Showing a web page, or a live preview of the code, in a browser.
Show a browser. The value can be any valid URL. Won't work for URLs that have blocked iframe usage.
Value: The URL to open in the external browser.
Scrolls the external browser.
Value: The number of pixels offset to scroll in the external browser.
Preview the current codebase in an external web browser
Value: The number of times to open the preview - should typically be '1'.
Slide
Showing a Markdown slide.
Show a slide. The value can be any valid markdown representing the slide.
Value: The markdown content of the slide.
Composite
Shortcuts that expand into several actions.
Composite action to create a file using the mouse in the file explorer.
Value: The name of the file to create.
Composite action to create a file using the terminal.
Value: The name of the file to create.
Composite action to create a folder using the mouse in the file explorer.
Value: The name of the folder to create.
Composite action to create a folder using the terminal.
Value: The name of the folder to create.
Composite action to close all open editors using the mouse.
Value: The number of times to execute this action - should typically be '1'.
Composite action to close all open editors using a keyboard shortcut.
Value: The number of times to execute this action - should typically be '1'.