code-squad-cli 1.2.12 → 1.2.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.
- package/dist/flip/index.js +8 -25
- package/dist/index.js +8 -24
- package/package.json +1 -1
package/dist/flip/index.js
CHANGED
|
@@ -135,7 +135,6 @@ function printUsage() {
|
|
|
135
135
|
console.error(' --session <uuid> Session ID for paste-back tracking');
|
|
136
136
|
}
|
|
137
137
|
async function setupHotkey() {
|
|
138
|
-
// Get node and csq paths for iTerm2 setup
|
|
139
138
|
let nodePath;
|
|
140
139
|
try {
|
|
141
140
|
nodePath = execSync('which node', { encoding: 'utf-8' }).trim();
|
|
@@ -144,39 +143,23 @@ async function setupHotkey() {
|
|
|
144
143
|
nodePath = '/usr/local/bin/node';
|
|
145
144
|
}
|
|
146
145
|
const csqPath = new URL(import.meta.url).pathname;
|
|
146
|
+
const command = `${nodePath} ${csqPath} flip`;
|
|
147
147
|
console.log('');
|
|
148
148
|
console.log('┌─────────────────────────────────────────────────┐');
|
|
149
|
-
console.log('│ Flip Hotkey Setup
|
|
149
|
+
console.log('│ Flip Hotkey Setup (iTerm2) │');
|
|
150
150
|
console.log('└─────────────────────────────────────────────────┘');
|
|
151
151
|
console.log('');
|
|
152
|
-
console.log('Choose one of the following options:');
|
|
153
|
-
console.log('');
|
|
154
|
-
console.log('─────────────────────────────────────────────────');
|
|
155
|
-
console.log('Option 1: Zsh keybinding (Alt+;)');
|
|
156
|
-
console.log('─────────────────────────────────────────────────');
|
|
157
|
-
console.log('Add to ~/.zshrc:');
|
|
158
|
-
console.log('');
|
|
159
|
-
console.log(' # Flip hotkey (Alt+;)');
|
|
160
|
-
console.log(' csq-flip-widget() { (csq flip &); zle reset-prompt; }');
|
|
161
|
-
console.log(' zle -N csq-flip-widget');
|
|
162
|
-
console.log(" bindkey '\\e;' csq-flip-widget");
|
|
163
|
-
console.log('');
|
|
164
|
-
console.log('Then run: source ~/.zshrc');
|
|
165
|
-
console.log('');
|
|
166
|
-
console.log('─────────────────────────────────────────────────');
|
|
167
|
-
console.log('Option 2: iTerm2 hotkey (any key combo)');
|
|
168
|
-
console.log('─────────────────────────────────────────────────');
|
|
169
152
|
console.log('1. iTerm2 → Settings → Keys → Key Bindings');
|
|
170
|
-
console.log('2.
|
|
171
|
-
console.log('3.
|
|
153
|
+
console.log('2. + 클릭');
|
|
154
|
+
console.log('3. Keyboard Shortcut: ⌘⇧F (Cmd+Shift+F)');
|
|
172
155
|
console.log('4. Action: "Run Coprocess"');
|
|
173
|
-
console.log('5. Command:');
|
|
156
|
+
console.log('5. Command (아래 자동 복사됨):');
|
|
174
157
|
console.log('');
|
|
175
|
-
console.log(`
|
|
158
|
+
console.log(` ${command}`);
|
|
176
159
|
console.log('');
|
|
177
160
|
try {
|
|
178
|
-
await copyToClipboard(
|
|
179
|
-
console.log('
|
|
161
|
+
await copyToClipboard(command);
|
|
162
|
+
console.log(' (Copied to clipboard!)');
|
|
180
163
|
}
|
|
181
164
|
catch {
|
|
182
165
|
// Ignore clipboard errors
|
package/dist/index.js
CHANGED
|
@@ -1507,39 +1507,23 @@ async function setupHotkey() {
|
|
|
1507
1507
|
nodePath = "/usr/local/bin/node";
|
|
1508
1508
|
}
|
|
1509
1509
|
const csqPath = new URL(import.meta.url).pathname;
|
|
1510
|
+
const command = `${nodePath} ${csqPath} flip`;
|
|
1510
1511
|
console.log("");
|
|
1511
1512
|
console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510");
|
|
1512
|
-
console.log("\u2502 Flip Hotkey Setup
|
|
1513
|
+
console.log("\u2502 Flip Hotkey Setup (iTerm2) \u2502");
|
|
1513
1514
|
console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518");
|
|
1514
1515
|
console.log("");
|
|
1515
|
-
console.log("Choose one of the following options:");
|
|
1516
|
-
console.log("");
|
|
1517
|
-
console.log("\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
|
|
1518
|
-
console.log("Option 1: Zsh keybinding (Alt+;)");
|
|
1519
|
-
console.log("\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
|
|
1520
|
-
console.log("Add to ~/.zshrc:");
|
|
1521
|
-
console.log("");
|
|
1522
|
-
console.log(" # Flip hotkey (Alt+;)");
|
|
1523
|
-
console.log(" csq-flip-widget() { (csq flip &); zle reset-prompt; }");
|
|
1524
|
-
console.log(" zle -N csq-flip-widget");
|
|
1525
|
-
console.log(" bindkey '\\e;' csq-flip-widget");
|
|
1526
|
-
console.log("");
|
|
1527
|
-
console.log("Then run: source ~/.zshrc");
|
|
1528
|
-
console.log("");
|
|
1529
|
-
console.log("\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
|
|
1530
|
-
console.log("Option 2: iTerm2 hotkey (any key combo)");
|
|
1531
|
-
console.log("\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
|
|
1532
1516
|
console.log("1. iTerm2 \u2192 Settings \u2192 Keys \u2192 Key Bindings");
|
|
1533
|
-
console.log("2.
|
|
1534
|
-
console.log("3.
|
|
1517
|
+
console.log("2. + \uD074\uB9AD");
|
|
1518
|
+
console.log("3. Keyboard Shortcut: \u2318\u21E7F (Cmd+Shift+F)");
|
|
1535
1519
|
console.log('4. Action: "Run Coprocess"');
|
|
1536
|
-
console.log("5. Command:");
|
|
1520
|
+
console.log("5. Command (\uC544\uB798 \uC790\uB3D9 \uBCF5\uC0AC\uB428):");
|
|
1537
1521
|
console.log("");
|
|
1538
|
-
console.log(`
|
|
1522
|
+
console.log(` ${command}`);
|
|
1539
1523
|
console.log("");
|
|
1540
1524
|
try {
|
|
1541
|
-
await copyToClipboard(
|
|
1542
|
-
console.log("
|
|
1525
|
+
await copyToClipboard(command);
|
|
1526
|
+
console.log(" (Copied to clipboard!)");
|
|
1543
1527
|
} catch {
|
|
1544
1528
|
}
|
|
1545
1529
|
console.log("");
|