projj icon indicating copy to clipboard operation
projj copied to clipboard

Add support for directory change in warp/iterm2 environments

Open atian25 opened this issue 9 months ago • 1 comments

Related to #64

Implements support for automatically switching to the corresponding directory in warp/iterm2 environments after adding a project, and updates the version number.

  • Adds a new function generateWarpScript in lib/utils.js to generate a script for changing directories in warp/iterm2 environments.
  • Modifies generateAppleScript in lib/utils.js to include support for warp/iterm2 environments by adding a warpCommand script and updating the return statement to execute the appropriate script based on the current terminal application.
  • Updates lib/command/add.js and lib/command/find.js to support changing directories in warp/iterm2 environments by utilizing the updated generateAppleScript function. Additionally, introduces a check for the TERM_PROGRAM environment variable to determine if the terminal is Warp and uses the generateWarpScript function accordingly.
  • Increments the version number in package.json to 2.2.0 to reflect the new feature addition.

For more details, open the Copilot Workspace session.

Summary by CodeRabbit

  • New Features

    • Added support for the 'Warp' environment in directory-changing commands.
  • Improvements

    • Enhanced error messages to reflect support for the 'Warp' environment.
  • Version Update

    • Updated project version from 2.1.0 to 2.2.0.

atian25 avatar May 14 '24 06:05 atian25