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