Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fmcorz/excelexec
Plugin for Sublime Text 2 to execute a command and redirect its output into a view
https://github.com/fmcorz/excelexec
Last synced: about 7 hours ago
JSON representation
Plugin for Sublime Text 2 to execute a command and redirect its output into a view
- Host: GitHub
- URL: https://github.com/fmcorz/excelexec
- Owner: FMCorz
- License: mit
- Created: 2012-08-07T14:50:19.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-08-11T03:30:09.000Z (over 12 years ago)
- Last Synced: 2023-03-23T08:27:10.869Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 103 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Excel Exec
==========Plugin for Sublime Text 2 to execute a command and redirect its output into a view.
Usage
-----The following commands are accessible via the command palette:
- Excel Exec: Execute in this window
- Excel Exec: Execute in a new window### Window commands
#### excel_exec
Executes a command according to the arguments passed.
sublime.active_window().run_command('excel_exec', { 'cmd': 'ls' })
#### excel_exec_what
Prompts the user for the command to launch.
sublime.active_window().run_command('excel_exec_what', { 'inline': False })
Parameters
----------- `cmd (string|list)`: the command to execute
- `inline (bool)`: if false the command output will be displayed in a new window
- `path (string)`: the environment variable $PATH to use
- `shell (bool)`: if true executes the command through a shell
- `working_dir (string)`: the directory the command has to be executed in
- `encoding (string)`: the encoding of the command output
- `env (dict)`: environment variables to set before the command runs
- `quiet (bool)`: enable display of extra informationInstallation
------------Clone this repository into the Packages directory. If you don't know where it is, enter the following command in the console:
print sublime.packages_path()
_To access the console press CTRL + `_
Note
----This plugin is based on the Exec command shipped with Sublime Text.
License
-------Licensed under the [MIT License](http://www.opensource.org/licenses/mit-license.php)