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

Installs

  • Total 4K
  • Win 3K
  • Mac 422
  • Linux 484
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13
Windows 0 0 2 2 0 2 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 3 0 0 0 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 2 0
Mac 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0
Linux 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 0 1 1 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.