Skip to content

Caffeine19/code-warp

Repository files navigation

Warp Terminal Extension

A VS Code extension that allows you to open Warp terminal in a new window with the current project path.

Features

  • Open Warp in New Window: Opens Warp terminal in a new window with the current workspace folder as the working directory
  • Open Warp in New Tab: Opens Warp terminal in a new tab with the current workspace folder as the working directory
  • Context Menu Integration: Right-click on files/folders in the Explorer or editor to open Warp with that specific path
  • Command Palette Support: Use Ctrl+Shift+P (or Cmd+Shift+P on Mac) and search for "Open Warp Terminal" commands

Requirements

  • Warp Terminal must be installed on your system
  • Warp must support URI schemes (standard installation includes this)

Usage

Method 1: Command Palette

  1. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
  2. Type "Open Warp Terminal" to see both options:
    • "Open Warp Terminal in New Window"
    • "Open Warp Terminal in New Tab"
  3. Select your preferred option and press Enter

Method 2: Context Menu

  1. Right-click on any file or folder in the Explorer panel
  2. Choose either:
    • "Open Warp Terminal in New Window" - Opens a completely new Warp window
    • "Open Warp Terminal in New Tab" - Opens a new tab in existing Warp window
  3. Warp will open with that folder as the working directory

Method 3: Editor Context Menu

  1. Right-click in any open editor
  2. Choose either:
    • "Open Warp Terminal in New Window" - Opens a completely new Warp window
    • "Open Warp Terminal in New Tab" - Opens a new tab in existing Warp window
  3. Warp will open with the file's folder as the working directory

How It Works

This extension uses Warp's URI schemes to open terminal sessions with the specified directory:

  • New Window: warp://action/new_window?path=<path> - Opens a completely new Warp window
  • New Tab: warp://action/new_tab?path=<path> - Opens a new tab in existing Warp window

The implementation is based on the Raycast Warp extension.

Extension Settings

This extension contributes the following settings:

  • No additional settings required - works out of the box with Warp's default installation

Known Issues

  • Requires Warp terminal to be installed and properly configured
  • URI scheme support must be enabled in Warp (enabled by default)

Release Notes

0.0.1

Initial release with basic functionality:

  • Open Warp terminal in new window with project path
  • Open Warp terminal in new tab with project path
  • Context menu integration for both options
  • Command palette support for both options

Roadmap

We're continuously working to improve the Warp Terminal extension. Here are some features we're planning to add:

  • Warp Preview Support - Add support for Warp preview builds with warppreview:// URI scheme
  • Launch Configurations Sidebar - Add a dedicated sidebar panel to manage and display launch configurations
  • Configuration Search - Support searching and filtering launch configurations through the command palette
  • Active Tab Integration - Add functionality to open the currently active tab/file location in Warp

Have a feature request? Feel free to open an issue or contribute to the project!

Development

To work on this extension:

  1. Clone the repository
  2. Run npm install
  3. Open in VS Code
  4. Press F5 to launch a new Extension Development Host window
  5. Test the extension commands

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License.

About

Vscode extension for Warp Terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published