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 514
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 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22
Windows 0 0 0 0 0 2 0 1 1 0 0 0 3 0 1 2 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 1
Mac 0 0 0 0 0 0 0 0 1 0 0 0 1 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
Linux 0 0 0 0 0 1 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 0 0 0 0 1 0 0 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.