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 441
  • Linux 515
Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14
Windows 0 0 0 1 1 0 0 0 0 2 0 1 0 0 0 2 0 1 1 1 1 1 0 0 0 0 0 0 2 0 1 1 0 0 0 3 0 1 2 0 0 0 0 1 0 1
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 0 0 1 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.