project-compass 3.5.6 → 3.5.7
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/package.json +1 -1
- package/src/cli.js +8 -8
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -366,15 +366,15 @@ function Compass({rootPath, initialView = 'navigator'}) {
|
|
|
366
366
|
setShowHelp(false);
|
|
367
367
|
};
|
|
368
368
|
|
|
369
|
-
if (shiftCombo('h')) { setConfig(prev => { const next = {...prev, showHelpCards: !prev.showHelpCards}; saveConfig(next); return next; }); return; }
|
|
370
|
-
if (shiftCombo('s')) { setConfig(prev => { const next = {...prev, showStructureGuide: !prev.showStructureGuide}; saveConfig(next); return next; }); return; }
|
|
369
|
+
if (shiftCombo('h')) { console.clear(); setConfig(prev => { const next = {...prev, showHelpCards: !prev.showHelpCards}; saveConfig(next); return next; }); return; }
|
|
370
|
+
if (shiftCombo('s')) { console.clear(); setConfig(prev => { const next = {...prev, showStructureGuide: !prev.showStructureGuide}; saveConfig(next); return next; }); return; }
|
|
371
371
|
if (shiftCombo('a')) { clearAndSwitch(mainView === 'navigator' ? 'studio' : 'navigator'); return; }
|
|
372
372
|
if (shiftCombo('p')) { clearAndSwitch(mainView === 'navigator' ? 'registry' : 'navigator'); return; }
|
|
373
373
|
if (shiftCombo('n')) { clearAndSwitch(mainView === 'navigator' ? 'architect' : 'navigator'); return; }
|
|
374
|
-
if (shiftCombo('x')) { setTasks(prev => prev.map(t => t.id === activeTaskId ? {...t, logs: []} : t)); setLogOffset(0); return; }
|
|
374
|
+
if (shiftCombo('x')) { console.clear(); setTasks(prev => prev.map(t => t.id === activeTaskId ? {...t, logs: []} : t)); setLogOffset(0); return; }
|
|
375
375
|
if (shiftCombo('e')) { exportLogs(); return; }
|
|
376
|
-
if (shiftCombo('d')) { setActiveTaskId(null); return; }
|
|
377
|
-
if (shiftCombo('b')) { setConfig(prev => { const next = {...prev, showArtBoard: !prev.showArtBoard}; saveConfig(next); return next; }); return; }
|
|
376
|
+
if (shiftCombo('d')) { console.clear(); setActiveTaskId(null); return; }
|
|
377
|
+
if (shiftCombo('b')) { console.clear(); setConfig(prev => { const next = {...prev, showArtBoard: !prev.showArtBoard}; saveConfig(next); return next; }); return; }
|
|
378
378
|
|
|
379
379
|
if (shiftCombo('t')) {
|
|
380
380
|
setMainView((prev) => {
|
|
@@ -444,11 +444,11 @@ function Compass({rootPath, initialView = 'navigator'}) {
|
|
|
444
444
|
if (key.shift && key.upArrow) { scrollLogs(1); return; }
|
|
445
445
|
if (key.shift && key.downArrow) { scrollLogs(-1); return; }
|
|
446
446
|
|
|
447
|
-
if (normalizedInput === '?') { setShowHelp((prev) => !prev); return; }
|
|
447
|
+
if (normalizedInput === '?') { console.clear(); setShowHelp((prev) => !prev); return; }
|
|
448
448
|
if (shiftCombo('l') && lastCommandRef.current) { runProjectCommand(lastCommandRef.current.commandMeta, lastCommandRef.current.project); return; }
|
|
449
449
|
|
|
450
|
-
if (key.upArrow && !key.shift && projects.length > 0) { setSelectedIndex((prev) => (prev - 1 + projects.length) % projects.length); return; }
|
|
451
|
-
if (key.downArrow && !key.shift && projects.length > 0) { setSelectedIndex((prev) => (prev + 1) % projects.length); return; }
|
|
450
|
+
if (key.upArrow && !key.shift && projects.length > 0) { console.clear(); setSelectedIndex((prev) => (prev - 1 + projects.length) % projects.length); return; }
|
|
451
|
+
if (key.downArrow && !key.shift && projects.length > 0) { console.clear(); setSelectedIndex((prev) => (prev + 1) % projects.length); return; }
|
|
452
452
|
if (key.return) {
|
|
453
453
|
if (!selectedProject) return;
|
|
454
454
|
console.clear();
|