ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Exec​Input

by mheinzler ST3

Sublime Text package to send input to stdin through the exec build target

Details

  • 1.0.3
  • github.​com
  • github.​com
  • 10 months ago
  • 6 minutes ago
  • 2 months ago

Installs

  • Total 233
  • Win 181
  • OS X 24
  • Linux 28
Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1
Windows 0 5 3 2 3 2 0 2 1 5 4 1 1 2 3 9 11 1 2 1 1 1 2 3 4 2 1 2 4 3 2 4 0 2 1 3 4 4 4 3 3 3 3 1 2 2
OS X 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 1 1 2 0 0 0 3 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1
Linux 0 1 0 1 0 1 1 0 0 1 1 0 1 0 1 0 0 0 0 0 0 0 0 1 0 1 0 0 1 1 0 0 1 0 0 0 1 0 1 1 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

ExecInput

This Sublime Text package allows you to send input to stdin of the currently running process. The process must have been started through the exec build target which is used by all standard build systems.

It works by hooking into the ExecCommand class to get access to the currently running process. Because of that, it should also be compatible with all other build targets that extend the default ExecCommand class.

Installation

Package Control

The easiest way to install is using Sublime Text's Package Control:

  • Open the Command Palette using the menu item ToolsCommand Palette...
  • Choose Package Control: Install Package
  • Install ExecInput

Download

  • Download a release
  • Extract the package and rename it to ExecInput
  • Copy the package into your Packages directory. You can find this using the menu item PreferencesBrowse Packages....

Usage

Make sure to start a process that is waiting for input. Now there are multiple ways to send input:

  • Using the default key binding while the build output panel is visible: Ctrl+Alt+Enter
  • Using the menu item ToolsSend input
  • Using the Command Palette item ExecInput: Send input

The entered text will then be sent to the process and also added to the build output panel.

Multiple lines of input can be send by using Shift+Enter.

Customization

This package provides the command exec_input. Use this if you want to customize the key bindings, menu items, etc.