@kianax/wt 0.1.4 → 0.1.5

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/dist/cli.js +10 -6
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -14851,7 +14851,7 @@ var package_default;
14851
14851
  var init_package = __esm(() => {
14852
14852
  package_default = {
14853
14853
  name: "@kianax/wt",
14854
- version: "0.1.4",
14854
+ version: "0.1.5",
14855
14855
  description: "Git worktree manager - make worktrees as effortless as branches",
14856
14856
  type: "module",
14857
14857
  main: "dist/cli.js",
@@ -53455,12 +53455,16 @@ var init_version = __esm(() => {
53455
53455
  // src/tui/components/columns.ts
53456
53456
  function formatRow(parts) {
53457
53457
  const { cursor, icon, name, path, age, status, suffix = "" } = parts;
53458
+ const gap = " ".repeat(GAP);
53458
53459
  return [
53459
53460
  cursor.padEnd(COLUMNS.cursor),
53460
53461
  icon.padEnd(COLUMNS.icon),
53461
53462
  name.padEnd(COLUMNS.name),
53463
+ gap,
53462
53464
  path.padEnd(COLUMNS.path),
53465
+ gap,
53463
53466
  age.padEnd(COLUMNS.age),
53467
+ gap,
53464
53468
  status.padEnd(COLUMNS.status),
53465
53469
  suffix
53466
53470
  ].join("");
@@ -53475,7 +53479,7 @@ function formatHeader() {
53475
53479
  status: "status"
53476
53480
  });
53477
53481
  }
53478
- var COLUMNS;
53482
+ var COLUMNS, GAP = 2;
53479
53483
  var init_columns = __esm(() => {
53480
53484
  COLUMNS = {
53481
53485
  cursor: 2,
@@ -53538,7 +53542,7 @@ function WorktreeItem({
53538
53542
  syncSuffix += `-${behind}`;
53539
53543
  const rowText = formatRow({
53540
53544
  cursor: isSelected ? ">" : "",
53541
- icon: isCurrent ? "*" : "",
53545
+ icon: isCurrent ? "" : "",
53542
53546
  name: displayName,
53543
53547
  path: displayPath,
53544
53548
  age: age || "",
@@ -53548,9 +53552,9 @@ function WorktreeItem({
53548
53552
  const cursorEnd = COLUMNS.cursor;
53549
53553
  const iconEnd = cursorEnd + COLUMNS.icon;
53550
53554
  const nameEnd = iconEnd + COLUMNS.name;
53551
- const pathEnd = nameEnd + COLUMNS.path;
53552
- const ageEnd = pathEnd + COLUMNS.age;
53553
- const statusEnd = ageEnd + COLUMNS.status;
53555
+ const pathEnd = nameEnd + GAP + COLUMNS.path;
53556
+ const ageEnd = pathEnd + GAP + COLUMNS.age;
53557
+ const statusEnd = ageEnd + GAP + COLUMNS.status;
53554
53558
  return /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(Box_default, {
53555
53559
  children: [
53556
53560
  /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(Text, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kianax/wt",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Git worktree manager - make worktrees as effortless as branches",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",