Tabs
# Tabs import { Tabs, TabItem } from '@astrojs/starlight/components'; import VideoEmbed from '@components/VideoEmbed.astro'; :::note New Tabs will default to the active Tabs’ current [Working Directory](/terminal/more-features/working-directory/) and the actual color values will be automatically derived from your Warp [Theme](/terminal/appearance/themes/). ::: ## How to use Tabs <Tabs> <TabItem label="macOS"> * Right-click on the new Tab button `+` to make a new tab, restore closed tab, or run a saved [Launch Configuration](/terminal/sessions/launch-configurations/). * Open a new Tab with `CMD-T` or by clicking on the `+` in the top bar. * Close the current Tab with `CMD-W` or by clicking on the `X` on hover over a Tab. * Reopen closed tabs with `SHIFT-CMD-T`. * Move a Tab to the Left / Right with `CTRL-SHIFT-LEFT` / `CTRL-SHIFT-RIGHT` or by clicking and dragging a Tab. * Activate the Previous / Next Tab with `SHIFT-CMD-{` / `SHIFT-CMD-}` or by clicking a Tab. * Activate the first through eighth Tabs with `CMD-1` thru `CMD-8`. * Switch to the last Tab with `CMD-9`. * Double-click a Tab to rename it. * Right-clicking on a Tab reveals more options you can explore within the [Command Palette](/terminal/command-palette/) or [Keyboard Shortcuts](/getting-started/keyboard-shortcuts/#fundamentals). </TabItem> <TabItem label="Windows"> * Right-click on the new Tab button `+` to make a new tab, restore closed tab, or run a saved [Launch Configuration](/terminal/sessions/launch-configurations/). * Open a new Tab with `CTRL-SHIFT-T` or by clicking on the `+` in the top bar. * Close the current Tab with `CTRL-SHIFT-W` or by clicking on the `x` on hover over a Tab. * Reopen closed tabs with `CTRL-ALT-T`. * Move a Tab to the Left / Right with `CTRL-SHIFT-LEFT` / `CTRL-SHIFT-RIGHT` or by clicking and dragging a Tab. * Activate the Previous / Next Tab with `CTRL-PGUP` / `CTRL-PGDN` or by clicking a Tab. * Activate the first through eighth Tabs with `CTRL-1` thru `CTRL-8`. * Switch to the last Tab with `CTRL-9`. * Double-click a Tab to rename it. * Right-clicking on a Tab reveals more options you can explore within the [Command Palette](/terminal/command-palette/) or [Keyboard Shortcuts](/getting-started/keyboard-shortcuts/#fundamentals). </TabItem> <TabItem label="Linux"> * Right-click on the new Tab button `+` to make a new tab, restore closed tab, or run a saved [Launch Configuration](/terminal/sessions/launch-configurations/). * Open a new Tab with `CTRL-SHIFT-T` or by clicking on the `+` in the top bar. * Close the current Tab with `CTRL-SHIFT-W` or by clicking on the `x` on hover over a Tab. * Reopen closed tabs with `CTRL-ALT-T`. * Move a Tab to the Left / Right with `CTRL-SHIFT-LEFT` / `CTRL-SHIFT-RIGHT` or by clicking and dragging a Tab. * Activate the Previous / Next Tab with `CTRL-PGUP` / `CTRL-PGDN` or by clicking a Tab. * Activate the first through eighth Tabs with `CTRL-1` thru `CTRL-8`. * Switch to the last Tab with `CTRL-9`. * Double-click a Tab to rename it. * Right-clicking on a Tab reveals more options you can explore within the [Command Palette](/terminal/command-palette/) or [Keyboard Shortcuts](/getting-started/keyboard-shortcuts/#fundamentals). </TabItem> </Tabs> :::tip **Terminal Tip**\ Using your `.zshrc` or `.bashrc` files on macOS or Linux, you can set a new Tab name: ```bash # Set name, where MyTabName would be whatever you want to see in the Tab ( either a fixed string, $PWD, or something else ) function set_name () { export WARP_DISABLE_AUTO_TITLE=true echo -ne "\033]0;MyTabName\007" } # Add the function to the environment variable in either Zsh or Bash if [ -n "$ZSH_VERSION" ]; then preexec_functions+=(set_name) elif [ -n "$BASH_VERSION" ]; then PROMPT_COMMAND='set_name' fi ``` Learn more about Tab names [here](https://learn.microsoft.com/en-us/windows/terminal/tutorials/tab-title#set-the-shells-title). ::: ### Tab Restoration Tab Restoration enables you to reopen recently closed tabs for up to 60 seconds. Configure this feature in **Settings** > **Features** > **Session** > **Enable reopening of closed sessions** ### CTRL-TAB Behavior `CTRL-TAB` shortcut defaults to activate the previous / next Tab. You can configure the shortcut to cycle the most recent session, including any [Split Panes](/terminal/windows/split-panes/), in **Settings** > **Features** > **Keys** > **Ctrl-Tab behavior** ### Tabs Behavior Please see our [Appearance > Tabs Behavior](/terminal/appearance/tabs-behavior/) docs for more Tab related settings. ### How Tabs work <VideoEmbed url="https://www.loom.com/share/84d15cc7eb5a4a668bb86be9e827f261?hide_owner=true&hide_share=true&hide_title=true&hideEmbedTopBar=true" title="Tabs Demo" />Organize your window into multiple terminal sessions with customizable tabs, complete with titles and ANSI colors.
How to use Tabs
Section titled “How to use Tabs”- Right-click on the new Tab button
+to make a new tab, restore closed tab, or run a saved Launch Configuration. - Open a new Tab with
CMD-Tor by clicking on the+in the top bar. - Close the current Tab with
CMD-Wor by clicking on theXon hover over a Tab. - Reopen closed tabs with
SHIFT-CMD-T. - Move a Tab to the Left / Right with
CTRL-SHIFT-LEFT/CTRL-SHIFT-RIGHTor by clicking and dragging a Tab. - Activate the Previous / Next Tab with
SHIFT-CMD-{/SHIFT-CMD-}or by clicking a Tab. - Activate the first through eighth Tabs with
CMD-1thruCMD-8. - Switch to the last Tab with
CMD-9. - Double-click a Tab to rename it.
- Right-clicking on a Tab reveals more options you can explore within the Command Palette or Keyboard Shortcuts.
- Right-click on the new Tab button
+to make a new tab, restore closed tab, or run a saved Launch Configuration. - Open a new Tab with
CTRL-SHIFT-Tor by clicking on the+in the top bar. - Close the current Tab with
CTRL-SHIFT-Wor by clicking on thexon hover over a Tab. - Reopen closed tabs with
CTRL-ALT-T. - Move a Tab to the Left / Right with
CTRL-SHIFT-LEFT/CTRL-SHIFT-RIGHTor by clicking and dragging a Tab. - Activate the Previous / Next Tab with
CTRL-PGUP/CTRL-PGDNor by clicking a Tab. - Activate the first through eighth Tabs with
CTRL-1thruCTRL-8. - Switch to the last Tab with
CTRL-9. - Double-click a Tab to rename it.
- Right-clicking on a Tab reveals more options you can explore within the Command Palette or Keyboard Shortcuts.
- Right-click on the new Tab button
+to make a new tab, restore closed tab, or run a saved Launch Configuration. - Open a new Tab with
CTRL-SHIFT-Tor by clicking on the+in the top bar. - Close the current Tab with
CTRL-SHIFT-Wor by clicking on thexon hover over a Tab. - Reopen closed tabs with
CTRL-ALT-T. - Move a Tab to the Left / Right with
CTRL-SHIFT-LEFT/CTRL-SHIFT-RIGHTor by clicking and dragging a Tab. - Activate the Previous / Next Tab with
CTRL-PGUP/CTRL-PGDNor by clicking a Tab. - Activate the first through eighth Tabs with
CTRL-1thruCTRL-8. - Switch to the last Tab with
CTRL-9. - Double-click a Tab to rename it.
- Right-clicking on a Tab reveals more options you can explore within the Command Palette or Keyboard Shortcuts.
Tab Restoration
Section titled “Tab Restoration”Tab Restoration enables you to reopen recently closed tabs for up to 60 seconds. Configure this feature in Settings > Features > Session > Enable reopening of closed sessions
CTRL-TAB Behavior
Section titled “CTRL-TAB Behavior”CTRL-TAB shortcut defaults to activate the previous / next Tab. You can configure the shortcut to cycle the most recent session, including any Split Panes, in Settings > Features > Keys > Ctrl-Tab behavior
Tabs Behavior
Section titled “Tabs Behavior”Please see our Appearance > Tabs Behavior docs for more Tab related settings.