# run-scripts A small run control for JavaScript projects, in the style of Android Studio. It shows the package manager icon, the chosen script name and a down chevron, then a play button. Click the name to open a list of every script in the project's `package.json`. Click play to run the chosen script in a new terminal tab. When the focused terminal is not in a JavaScript project, the control is not drawn at all. ![run-scripts](preview.png) ## What you see The control is one bordered box, 28px high, text 12.5px. It has two halves split by a 1px divider that is 16px tall. - Box: background is the theme `background` (Nightfall: `#212121`), a 1px `border` line, rounded corners, contents clipped. - Left half (the picker): 8px left padding, 6px right padding, 6px gap, at most 200px wide. - A 13px package manager icon. Colors: npm `ansi1`, pnpm `ansi3`, yarn `ansi4`, bun `foreground`. - The chosen script name in `foreground`, cut with an ellipsis if too long. - A 12px `chevron-down` icon in `dim` (Nightfall: `#8f8f8f`). - Tooltip: ` ยท choose a script`. - Right half (play): 8px padding on each side, a 13px `play` icon in `ansi2` (green). Tooltip: `Run run