@dealdeploy/skl 0.3.0 → 0.4.0

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/index.ts +25 -27
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -569,7 +569,7 @@ const footerSep = new TextRenderable(renderer, {
569
569
 
570
570
  const footer = new TextRenderable(renderer, {
571
571
  id: "footer",
572
- content: " ↑↓ move ←→/tab col enter toggle ^a all ^e edit ^d del / search q/esc quit",
572
+ content: " ↑↓ move ←→/tab col enter toggle a all e edit d del / search q/esc quit",
573
573
  fg: C.footer,
574
574
  height: 1,
575
575
  });
@@ -917,38 +917,14 @@ renderer.keyInput.on("keypress", (key: KeyEvent) => {
917
917
  // ── Backspace in grid: do nothing ──
918
918
  if (key.name === "backspace") return;
919
919
 
920
- // ── Ctrl combos ──
921
- if (key.ctrl) {
922
- switch (key.name) {
923
- case "a":
924
- toggleAllColumn(cursorCol);
925
- for (const i of filteredIndices) updateRow(i);
926
- ensureVisible();
927
- return;
928
- case "e": {
929
- const idx = currentSkillIndex();
930
- if (idx !== null) editSkill(idx);
931
- return;
932
- }
933
- case "d": {
934
- const idx = currentSkillIndex();
935
- if (idx !== null) {
936
- pendingDelete = idx;
937
- setStatus(`delete ${allSkills[idx]}? (y to confirm)`, C.warning);
938
- }
939
- return;
940
- }
941
- }
942
- return;
943
- }
920
+ if (key.ctrl) return;
944
921
 
945
- // ── "q" to quit ──
922
+ // ── Single-key shortcuts ──
946
923
  if (key.sequence === "q") {
947
924
  renderer.destroy();
948
925
  process.exit(0);
949
926
  }
950
927
 
951
- // ── "/" to focus search (vim-style) ──
952
928
  if (key.sequence === "/") {
953
929
  focusArea = "search";
954
930
  refreshAll();
@@ -956,6 +932,28 @@ renderer.keyInput.on("keypress", (key: KeyEvent) => {
956
932
  return;
957
933
  }
958
934
 
935
+ if (key.sequence === "a") {
936
+ toggleAllColumn(cursorCol);
937
+ for (const i of filteredIndices) updateRow(i);
938
+ ensureVisible();
939
+ return;
940
+ }
941
+
942
+ if (key.sequence === "e") {
943
+ const idx = currentSkillIndex();
944
+ if (idx !== null) editSkill(idx);
945
+ return;
946
+ }
947
+
948
+ if (key.sequence === "d") {
949
+ const idx = currentSkillIndex();
950
+ if (idx !== null) {
951
+ pendingDelete = idx;
952
+ setStatus(`delete ${allSkills[idx]}? (y to confirm)`, C.warning);
953
+ }
954
+ return;
955
+ }
956
+
959
957
  // ── Navigation & actions ──
960
958
  switch (key.name) {
961
959
  case "down":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dealdeploy/skl",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "TUI skill manager for Claude Code agents",
5
5
  "module": "index.ts",
6
6
  "bin": {