Skip to content

Feature request: Deeplink to focus/switch to an existing tab by name or path #8929

@guenichone

Description

@guenichone

Summary

Add support for a deeplink (or CLI command) that switches to an existing named tab instead of always opening a new one. For example:

warp://action/focus/tab?name=my-project warp://action/focus/tab?path=/Users/me/projects/my-project 

Use Case

I'm building a Raycast extension that integrates with Warp as my primary terminal. When I select a project, I want to switch to the existing Warp tab where that project is already open (with its active sessions, history, and context), rather than opening a new blank tab.

Currently:

  • warp://action/open/folder?path=... always opens a new tab
  • Action.Open with dev.warp.Warp-Stable also opens a new tab
  • There is no way to focus an existing tab programmatically

The workaround today is simulating Cmd+Shift+P (command palette) via AppleScript to type the tab name and press Enter, which is fragile and slow.

Proposed API

# Focus tab by name (matches tab title) warp://action/focus/tab?name=ctf # Focus tab by working directory path warp://action/focus/tab?path=/Users/me/Development/ai/ctf # Focus tab or open new one if not found (fallback) warp://action/focus/tab?name=ctf&fallback=open 

This would enable proper integration with launcher tools (Raycast, Alfred), IDE extensions, and automation scripts that want to switch context without losing existing terminal state.

Environment

  • Warp on macOS
  • Integrating via Raycast extension and AppleScript

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions