Skip to content

jaclu010/touch-bar-commands

Repository files navigation

Touch Bar CLI Commands

This extension allows for 4 MacBook TouchBar icons (✎1-✎4) that each execute a CLI command of choice in VSCodes integrated terminal.

Touch Bar Screenshot

Features

The extension can be customized within VSCodes settings.

Custom commands

Type desired command

Command

Enable / disable buttons

Each button can be hidden when not desired.

Enable

Force new terminal window

Each command can forced to be run in a new terminal window (disabled by default). A new terminal window will also be created if none exist.

Force

Accessability

The commands are also available from the command palette (Cmd+Shift+P) and kan be bound to shortcuts, like

  "key": "cmd+shift+1",
  "command": "touch-bar-commands.execute.cmd1"

to bind command 1.

Extension Settings

This extension contributes the following settings:

  • touch-bar-commands.enable.cmdX: enable/disable command X
  • touch-bar-commands.force.cmdX: force command X to be executed in a new terminal window
  • touch-bar-commands.command.X: Command X that is executed

Where X is the number of the command (1-4).

Known Issues

  • The extension cannot dynamically edit the text of the TouchBar icon text due to VSCode limitations.

Release Notes

1.1.0

  • Change display name to 'Touch Bar CLI Commands' to avoid confusion
  • Minor README update
  • Bump vscode engine to 1.48

1.0.0

  • Initial release

About

Execute custom scripts from your touchbar, within VSCode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published