From f64f7a33c30257b4fefe1026296f8ffedbeef38d Mon Sep 17 00:00:00 2001 From: Rahul Jain Date: Mon, 23 Feb 2026 18:32:29 +0530 Subject: [PATCH] fix: add space before period in worktree completion messages The period directly after the path makes it easy to accidentally copy the period when selecting the path from the terminal. Adding a space before the period prevents this. Applied consistently across all commands: new, setup, extract, pr. --- src/commands/extract.ts | 2 +- src/commands/new.ts | 2 +- src/commands/pr.ts | 4 ++-- src/commands/setup.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/commands/extract.ts b/src/commands/extract.ts index 7fe9c0f..dea0753 100644 --- a/src/commands/extract.ts +++ b/src/commands/extract.ts @@ -175,7 +175,7 @@ export async function extractWorktreeHandler( } } - console.log(chalk.green(`\nWorktree extracted at ${resolvedPath}.`)); + console.log(chalk.green(`\nWorktree extracted at ${resolvedPath} .`)); if (options.install) { console.log(chalk.green(`Dependencies installed using ${options.install}.`)); } diff --git a/src/commands/new.ts b/src/commands/new.ts index d03235a..1d0eee8 100644 --- a/src/commands/new.ts +++ b/src/commands/new.ts @@ -168,7 +168,7 @@ export async function newWorktreeHandler( } } - console.log(chalk.green(`Worktree ${directoryExists ? "opened" : "created"} at ${resolvedPath}.`)); + console.log(chalk.green(`Worktree ${directoryExists ? "opened" : "created"} at ${resolvedPath} .`)); if (!directoryExists && options.install) { console.log(chalk.green(`Dependencies installed using ${options.install}.`)); } diff --git a/src/commands/pr.ts b/src/commands/pr.ts index 9a1a0ed..b565af8 100644 --- a/src/commands/pr.ts +++ b/src/commands/pr.ts @@ -405,11 +405,11 @@ export async function prWorktreeHandler( await execa(editorCommand, [resolvedPath], { stdio: "ignore", detached: true }); } catch (editorError) { console.error(chalk.red(`Failed to open editor "${editorCommand}". Please ensure it's installed and in your PATH.`)); - console.warn(chalk.yellow(`Worktree is ready at ${resolvedPath}. You can open it manually.`)); + console.warn(chalk.yellow(`Worktree is ready at ${resolvedPath} . You can open it manually.`)); } } - console.log(chalk.green(`Worktree for ${requestType} #${prNumber} (${prBranchName}) ${worktreeCreated ? "created" : "found"} at ${resolvedPath}.`)); + console.log(chalk.green(`Worktree for ${requestType} #${prNumber} (${prBranchName}) ${worktreeCreated ? "created" : "found"} at ${resolvedPath} .`)); if (worktreeCreated && options.install) { console.log(chalk.green(`Dependencies installed using ${options.install}.`)); } diff --git a/src/commands/setup.ts b/src/commands/setup.ts index c85ac56..06a3ecb 100644 --- a/src/commands/setup.ts +++ b/src/commands/setup.ts @@ -163,7 +163,7 @@ export async function setupWorktreeHandler( } } - console.log(chalk.green(`Worktree ${directoryExists ? "opened" : "created"} at ${resolvedPath}.`)); + console.log(chalk.green(`Worktree ${directoryExists ? "opened" : "created"} at ${resolvedPath} .`)); if (!directoryExists && options.install) { console.log(chalk.green(`Dependencies installed using ${options.install}.`)); }