projj
projj copied to clipboard
Add support for warp/iterm2 environments
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
inlib/utils.js
to generate scripts for changing directories in warp/iterm2 environments. - Modifies
generateAppleScript
inlib/utils.js
to include a condition that checks for warp/iterm2 environments and executes thegenerateWarpScript
if the condition is true. - Updates
_run
methods in bothlib/command/add.js
andlib/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.