Skip to content

Commit ea37d3e

Browse files
tw93Copilot
andcommitted
fix(purge): remove 60-char hard cap on path display width (issue #564)
The path column in 'mo purge' selection was capped at 60 characters regardless of terminal width. On wide terminals (120+ cols) this caused long project paths like ~/GitHub/Ulama/transformer-project to be truncated unnecessarily to ~17 visible characters. Remove the hard 60-char cap and let the available terminal space be the only upper bound, which is already computed as: available_for_path = terminal_width - fixed_overhead Paths now use as much space as the terminal allows while still keeping the size and artifact-type columns readable. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent cb2eb10 commit ea37d3e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/clean/project.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,6 @@ clean_project_artifacts() {
11751175
fi
11761176

11771177
[[ $available_width -lt $min_width ]] && available_width=$min_width
1178-
[[ $available_width -gt 60 ]] && available_width=60
11791178
fi
11801179

11811180
# Truncate project path if needed
@@ -1273,7 +1272,6 @@ clean_project_artifacts() {
12731272

12741273
[[ $max_path_display_width -lt $min_path_width ]] && max_path_display_width=$min_path_width
12751274
[[ $available_for_path -lt $max_path_display_width ]] && max_path_display_width=$available_for_path
1276-
[[ $max_path_display_width -gt 60 ]] && max_path_display_width=60
12771275
# Ensure path width is at least 5 on very narrow terminals
12781276
[[ $max_path_display_width -lt 5 ]] && max_path_display_width=5
12791277

0 commit comments

Comments
 (0)