startall 0.0.15 → 0.0.16

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.js +14 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -3011,6 +3011,7 @@ class ProcessManager {
3011
3011
 
3012
3012
  const shortcuts = [
3013
3013
  { key: '\\', desc: 'panes', color: COLORS.cyan },
3014
+ { key: 'e', desc: 'execute', color: COLORS.warning },
3014
3015
  { key: '1-9', desc: 'toggle', color: COLORS.success },
3015
3016
  { key: 'i', desc: 'input', color: COLORS.success },
3016
3017
  { key: 'n', desc: 'name', color: COLORS.accent },
@@ -3023,6 +3024,19 @@ class ProcessManager {
3023
3024
  { key: 'q', desc: 'quit', color: COLORS.error },
3024
3025
  ];
3025
3026
 
3027
+ // Add configured quick command shortcuts
3028
+ const configShortcuts = this.config.shortcuts || {};
3029
+ for (const [key, scriptName] of Object.entries(configShortcuts)) {
3030
+ // Show first 3 shortcuts to avoid cluttering footer
3031
+ if (Object.keys(configShortcuts).length <= 3 || shortcuts.length < 15) {
3032
+ const script = this.allScripts.find(s => s.name === scriptName);
3033
+ if (script) {
3034
+ const shortDesc = script.displayName.length > 8 ? script.displayName.substring(0, 6) + '..' : script.displayName;
3035
+ shortcuts.splice(2, 0, { key, desc: shortDesc, color: this.processColors.get(script.name) || COLORS.text });
3036
+ }
3037
+ }
3038
+ }
3039
+
3026
3040
  shortcuts.forEach(({ key, desc, color }) => {
3027
3041
  const shortcut = new TextRenderable(this.renderer, {
3028
3042
  id: `shortcut-${key}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "startall",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {