projj
projj copied to clipboard
Add support for directory change in warp/iterm2 environments
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
inlib/utils.js
to generate a script for changing directories in warp/iterm2 environments. - Modifies
generateAppleScript
inlib/utils.js
to include support for warp/iterm2 environments by adding awarpCommand
script and updating the return statement to execute the appropriate script based on the current terminal application. - Updates
lib/command/add.js
andlib/command/find.js
to support changing directories in warp/iterm2 environments by utilizing the updatedgenerateAppleScript
function. Additionally, introduces a check for theTERM_PROGRAM
environment variable to determine if the terminal is Warp and uses thegenerateWarpScript
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.