@san-siva/gitsy 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/g-wl +6 -1
  2. package/package.json +1 -1
package/bin/g-wl CHANGED
@@ -109,6 +109,11 @@ list_worktrees() {
109
109
  print_message "${GREEN}Worktrees:${NC}" -1
110
110
  print_message "" -1
111
111
 
112
+ # Ensure "Directory Name" header fits
113
+ if [ $max_length -lt 14 ]; then
114
+ max_length=14
115
+ fi
116
+
112
117
  # Calculate max branch name length for table formatting
113
118
  local max_branch_length=15 # Minimum width
114
119
  local worktree_count=${#dir_names[@]}
@@ -132,7 +137,7 @@ list_worktrees() {
132
137
  printf "─┐\n"
133
138
 
134
139
  # Print header
135
- printf "│ ${PROMPT}%-${max_length}s${NC}${PROMPT}%-${max_branch_length}s${NC} │\n" "Directory Name" "Branch Name"
140
+ printf "│ %-${max_length}s │ %-${max_branch_length}s │\n" "Directory Name" "Branch Name"
136
141
 
137
142
  # Print header separator
138
143
  printf "├─"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@san-siva/gitsy",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "A set of bash utilities for managing Git repositories with ease",
5
5
  "keywords": [
6
6
  "git",