projj icon indicating copy to clipboard operation
projj copied to clipboard

Add support for warp/iterm2 environments

Open atian25 opened this issue 9 months ago • 1 comments

Related to #64

This pull request introduces support for automatically switching to the corresponding directory after adding or finding a project in warp/iterm2 environments, addressing the need for compatibility beyond iTerm2 and Terminal applications on macOS.

  • Adds a new function generateWarpScript in lib/utils.js to generate scripts for changing directories in warp/iterm2 environments.
  • Modifies generateAppleScript in lib/utils.js to include a condition that checks for warp/iterm2 environments and executes the generateWarpScript if the condition is true.
  • Updates _run methods in both lib/command/add.js and lib/command/find.js to include a check for warp/iterm2 environments. If the environment matches, it executes the corresponding script for directory change, extending support to these environments alongside Darwin platforms.

For more details, open the Copilot Workspace session.

Summary by CodeRabbit

  • New Features

    • Added support for the Warp environment in directory changing commands.
    • Introduced a new function to generate scripts for the Warp application.
  • Enhancements

    • Updated error messages to reflect support for both Darwin and Warp environments.
  • Bug Fixes

    • Improved script generation to adapt based on the terminal program in use.

atian25 avatar May 12 '24 23:05 atian25