From f4be50bdd7baaa5807b6844d0f19f3a043466be4 Mon Sep 17 00:00:00 2001 From: Willie Date: Wed, 11 Feb 2026 16:21:26 +0800 Subject: [PATCH] fix: shorten target multi-select labels for readability Move path display to detection phase output. Multi-select options now show only name + status instead of name + full path + status, preventing an unreadable long line when all targets are selected. --- cmd/skillshare/init.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/skillshare/init.go b/cmd/skillshare/init.go index 86c104427..6cb4ee801 100644 --- a/cmd/skillshare/init.go +++ b/cmd/skillshare/init.go @@ -364,9 +364,9 @@ func detectCLIDirectories(home string) []detectedDir { exists: true, }) if skillCount > 0 { - ui.Success("Found: %s (%d skills)", name, skillCount) + ui.Success("Found: %-12s %s (%d skills)", name, target.Path, skillCount) } else { - ui.Info("Found: %s (empty)", name) + ui.Info("Found: %-12s %s (empty)", name, target.Path) } } else { // Skills directory doesn't exist - check if parent exists (CLI installed) @@ -379,7 +379,7 @@ func detectCLIDirectories(home string) []detectedDir { hasSkills: false, exists: false, }) - ui.Info("Found: %s (not initialized)", name) + ui.Info("Found: %-12s %s (not initialized)", name, target.Path) } } } @@ -551,6 +551,7 @@ func buildTargetsList(detected []detectedDir, copyFrom, copyFromName, targetsArg } // Create options for survey.MultiSelect + // Use short labels (name + status) since paths were shown during detection. options := make([]string, len(detected)) var defaultIndices []int for i, d := range detected { @@ -564,7 +565,7 @@ func buildTargetsList(detected []detectedDir, copyFrom, copyFromName, targetsArg } else { status = "(not initialized)" } - options[i] = fmt.Sprintf("%-12s %s %s", d.name, d.path, status) + options[i] = fmt.Sprintf("%s %s", d.name, status) // Pre-select if this is the copyFrom target if d.name == copyFromName {