@kud/claude-sessions-cli 1.0.0 → 1.0.2
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.
- package/dist/index.js +8 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
#!/usr/bin/env node
|
|
3
2
|
|
|
4
3
|
// src/index.tsx
|
|
5
4
|
import React, { useState, useEffect } from "react";
|
|
@@ -378,8 +377,10 @@ var App = () => {
|
|
|
378
377
|
if (cursor === 0) {
|
|
379
378
|
setMode("new");
|
|
380
379
|
setNewName("");
|
|
381
|
-
} else if (items[cursor])
|
|
382
|
-
|
|
380
|
+
} else if (items[cursor]) {
|
|
381
|
+
const s = items[cursor];
|
|
382
|
+
doExit({ type: s.claudeProjectDir ? "open" : "new", dir: s.dir });
|
|
383
|
+
}
|
|
383
384
|
}
|
|
384
385
|
if (input === "d" && cursor > 0) setMode("confirm-delete");
|
|
385
386
|
if (input === "C") {
|
|
@@ -400,8 +401,10 @@ var App = () => {
|
|
|
400
401
|
setSearch("");
|
|
401
402
|
setMode("new");
|
|
402
403
|
setNewName("");
|
|
403
|
-
} else if (items[cursor])
|
|
404
|
-
|
|
404
|
+
} else if (items[cursor]) {
|
|
405
|
+
const s = items[cursor];
|
|
406
|
+
doExit({ type: s.claudeProjectDir ? "open" : "new", dir: s.dir });
|
|
407
|
+
}
|
|
405
408
|
}
|
|
406
409
|
if (key.escape) {
|
|
407
410
|
setSearch("");
|