Skip to content

πŸŽ₯ Make videos programmatically with React

background

Jonny Burgerfc9462d3ab31
diff --git a/packages/docs/docs/studio/quick-switcher.mdx b/packages/docs/docs/studio/quick-switcher.mdx
new file mode 100644
index 0000000000..b10cb82988
--- /dev/null
+++ b/packages/docs/docs/studio/quick-switcher.mdx
@@ -0,0 +1,23 @@
+---
+title: Quick Switcher
+crumb: "Remotion Studio"
+---
+
+Press <kbd>⌘/Ctrl</kbd> + <kbd>K</kbd> to invoke the quick switcher. By default it will let you select a [composition](/docs/terminology/composition).
+In the input field, you filter for compositions by typing in their [ID](/docs/terminology/composition#composition-id).
+
+## Navigating through menu items
+
+If you type "`>`" as the first character, you can navigate through the menu items.
+Add more characters after "`>`" to filter the menu items.
+
+## Searching documentation
+
+If you type "`?`" as the first character, you can search this very documentation.
+Add more characters after "`?`" to enter a query.
+
+## Keyboard navigation
+
+Use up and down arrow keys to navigate through the menu items.
+Press <kbd>Enter</kbd> to select the currently highlighted item and close the quick switcher.
+Press <kbd>Esc</kbd> to close the quick switcher.
diff --git a/packages/docs/docs/studio/shortcuts.md b/packages/docs/docs/studio/shortcuts.mdx
similarity index 68%
rename from packages/docs/docs/studio/shortcuts.md
rename to packages/docs/docs/studio/shortcuts.mdx
index 3c85d1be8f..8b407620ce 100644
--- a/packages/docs/docs/studio/shortcuts.md
+++ b/packages/docs/docs/studio/shortcuts.mdx
@@ -158,130 +158,129 @@ Pause and return to where playback started
### Sidebars
<table>
-<tr>
-<td>
-<kbd>⌘/Ctrl</kbd>
-<div style={{ width: 2, display: "inline-block" }} />
-<kbd>B</kbd>
-</td>
-<td>
-Toggle left sidebar
-</td>
-</tr>
-<tr>
-<td>
-<kbd>⌘/Ctrl</kbd>
-<div style={{ width: 2, display: "inline-block" }} />
-<kbd>J</kbd>
-</td>
-<td>
-Toggle right sidebar
-</td>
-</tr>
-<tr>
-<td>
-<kbd>⌘/Ctrl</kbd>
-<div style={{ width: 2, display: "inline-block" }} />
-<kbd>G</kbd>
-</td>
-<td>
-Toggle both sidebars
-</td>
-</tr>
+ <tr>
+ <td>
+ <kbd>⌘/Ctrl</kbd>
+ <div style={{ width: 2, display: "inline-block" }} />
+ <kbd>B</kbd>
+ </td>
+ <td>Toggle left sidebar</td>
+ </tr>
+ <tr>
+ <td>
+ <kbd>⌘/Ctrl</kbd>
+ <div style={{ width: 2, display: "inline-block" }} />
+ <kbd>J</kbd>
+ </td>
+ <td>Toggle right sidebar</td>
+ </tr>
+ <tr>
+ <td>
+ <kbd>⌘/Ctrl</kbd>
+ <div style={{ width: 2, display: "inline-block" }} />
+ <kbd>G</kbd>
+ </td>
+ <td>Toggle both sidebars</td>
+ </tr>
</table>
### View
<table>
-<tr>
-<td>
-<kbd>F</kbd>
-</td>
-<td>
-Enter fullscreen
-</td>
-</tr>
-<tr>
-<td>
-<kbd>Esc</kbd>
-</td>
-<td>
-Enter fullscreen
-</td>
-</tr>
+ <tr>
+ <td>
+ <kbd>F</kbd>
+ </td>
+ <td>Enter fullscreen</td>
+ </tr>
+ <tr>
+ <td>
+ <kbd>Esc</kbd>
+ </td>
+ <td>Enter fullscreen</td>
+ </tr>
</table>
### Playback range
<table>
-<tr>
-<td>
-<kbd>I</kbd>
-</td>
-<td>
-Set In Point - video will only play from this point
-</td>
-</tr>
-<tr>
-<td>
-<kbd>O</kbd>
-</td>
-<td>
-Set Out Point - video will only play until this point
-</td>
-</tr>
-<tr>
-<td>
-<kbd>X</kbd>
-</td>
-<td>
-Clear both In and Out points
-</td>
-</tr>
+ <tr>
+ <td>
+ <kbd>I</kbd>
+ </td>
+ <td>Set In Point - video will only play from this point</td>
+ </tr>
+ <tr>
+ <td>
+ <kbd>O</kbd>
+ </td>
+ <td>Set Out Point - video will only play until this point</td>
+ </tr>
+ <tr>
+ <td>
+ <kbd>X</kbd>
+ </td>
+ <td>Clear both In and Out points</td>
+ </tr>
</table>
### Zoom
<table>
-<tr>
-<td>
-<kbd>+</kbd>
-</td>
-<td>
-Zoom in
-</td>
-</tr>
-<tr>
-<td>
-<kbd>-</kbd>
-</td>
-<td>
-Zoom out
-</td>
-</tr>
-<tr>
-<td>
-<kbd>0</kbd>
-</td>
-<td>
-Reset zoom
-</td>
-</tr>
+ <tr>
+ <td>
+ <kbd>+</kbd>
+ </td>
+ <td>Zoom in</td>
+ </tr>
+ <tr>
+ <td>
+ <kbd>-</kbd>
+ </td>
+ <td>Zoom out</td>
+ </tr>
+ <tr>
+ <td>
+ <kbd>0</kbd>
+ </td>
+ <td>Reset zoom</td>
+ </tr>
</table>
### Props editor
<table>
-<tr>
-<td>
-<kbd>⌘/Ctrl</kbd>
-<div style={{ width: 2, display: "inline-block" }} />
-<kbd>S</kbd>
-</td>
-<td>
-Save props back to root file
-</td>
-</tr>
+ <tr>
+ <td>
+ <kbd>⌘/Ctrl</kbd>
+ <div style={{ width: 2, display: "inline-block" }} />
+ <kbd>S</kbd>
+ </td>
+ <td>Save props back to root file</td>
+ </tr>
+</table>
+
+### navigation
+
+<table>
+ <tr>
+ <td>
+ <kbd>N</kbd>
+ </td>
+ <td>New composition</td>
+ </tr>
+ <tr>
+ <td>
+ <kbd>R</kbd>
+ </td>
+ <td>Render composition</td>
+ </tr>
+ <tr>
+ <td>
+ <kbd>T</kbd>
+ </td>
+ <td>Toggle checkerboard background</td>
+ </tr>
</table>
## Keyboard navigation
@@ -291,3 +290,7 @@ The menus are keyboard-navigation friendly. Press <kbd>Tab</kbd> to navigate bet
## Quick Switcher
Press <kbd>⌘/Ctrl</kbd> + <kbd>K</kbd> to open the Quick Switcher. You can use it to quickly navigate to any file in your project.
+
+## Disable keyboard shortcuts
+
+Start the Studio with [`--disable-keyboard-shortcuts`](/docs/cli/studio#--disable-keyboard-shortcuts) to disable all keyboard shortcuts. Useful if you are embedding it into an iframe.
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index f18820365d..22cd667831 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -530,7 +530,7 @@ module.exports = {
{
type: "category",
label: "Studio",
- items: ["studio/studio", "studio/shortcuts"],
+ items: ["studio/studio", "studio/shortcuts", "studio/quick-switcher"],
},
{
type: "category",
diff --git a/packages/studio/src/components/KeyboardShortcutsExplainer.tsx b/packages/studio/src/components/KeyboardShortcutsExplainer.tsx
index 36c54f5c67..583fb64337 100644
--- a/packages/studio/src/components/KeyboardShortcutsExplainer.tsx
+++ b/packages/studio/src/components/KeyboardShortcutsExplainer.tsx
@@ -226,7 +226,7 @@ export const KeyboardShortcutsExplainer: React.FC = () => {
<div style={left}>
<kbd style={key}>T</kbd>
</div>
- <div style={right}>Toggle checkerboard transparency</div>
+ <div style={right}>Toggle checkerboard background</div>
</Row>
<Row align="center">
<div style={left}>