Lazy Terminal Run is a Visual Studio Code extension that allows you to quickly run and edit scripts from a specified configuration file. This extension provides a convenient way to manage and execute your frequently used terminal commands directly from the VS Code interface.
Features
Run Scripts: Quickly run scripts from a specified file path.
Add/Edit/Delete Scripts: Easily add and update scripts in the configuration file.
Recent Selection: The extension remembers your last selected script and prioritizes it in the selection menu.
Installation
Open Visual Studio Code.
Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or by pressing Ctrl+Shift+X.
Search for "Lazy Terminal Run".
Click "Install" to install the extension.
Usage
Running a Script
Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on Mac).
Type lazy-terminal: Run and select it.
Choose a script from the list to run it in the active terminal.
Adding a Script
Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on Mac).
Type lazy-terminal: Add and select it.
Entry the script in the prompt and save.
Editing a Script
Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on Mac).
Type lazy-terminal: Edit and select it.
Choose a script from the list to edit it.
Enter the updated command and save.
Deleting a Script
Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on Mac).
Type lazy-terminal: Delete and select it.
Choose a script from the list to delete it.
A confirmation prompt will appear to confirm deletion.
Running Batch of Scripts
Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on Mac).
Type lazy-terminal: Batch Run and select it.
Choose a script from the list to delete it.
A confirmation prompt will appear to confirm deletion.
Keyboard Shortcut
Run
Windows/Linux: Ctrl+Alt+T
Mac: Ctrl+Cmd+T
Add
Windows/Linux: Ctrl+Alt+A
Mac: Ctrl+Cmd+A
Edit
Windows/Linux: Ctrl+Alt+E
Mac: Ctrl+Cmd+E
Delete
Windows/Linux: Ctrl+Alt+Shift+T
Mac: Ctrl+Cmd+Shift+T
Open Script File
Windows/Linux: Ctrl+Alt+Shift+O
Mac: Ctrl+Cmd+Shift+O
Configuration
You can configure the file path for your scripts in the settings.
Open the settings (Ctrl+, or Cmd+, on Mac).
Search for lazy-terminal-run.
Set the File Path to the desired path for your scripts.
The configuration file should be a plain text file with each line representing a script. For example:
this is a test script
this is a test script1 updated