ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Executor

by tonsky ST4 MacLinux

Run any executable from your working dir in Sublime Text

Labels build system

Details

Installs

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

Readme

Source
raw.​githubusercontent.​com

Executor

Plugin that let you run any executable from your working dir inside Sublime Text.

Simple plugin that walks your current working directories, finds all files marked as executable and let you run them inside Sublime Text.

Gives you these basic commands:

  • Executor: Execute (executor_execute)
  • Executor: Execute with Args (executor_execute_with_args)
  • Executor: Execute Shell (executor_execute_shell)
  • Executor: Repeat Recent (executor_repeat_recent)
  • Executor: Repeat Last (executor_repeat_last)
  • Executor: Cancel (executor_cancel)

Uses output.exec panel to stream both stdout and stderr.

Knows about .gitignore enough to skip looking into ignored paths.

Only one command can be run at the same time. Running second one will kill previous one.

Installation

Look for “Executor” in Package Control after this is published.

Manually:

  • Clone this repo into ~/Library/Application Support/Sublime Text/Packages

Running arbitrary shell command

Use Executor: Execute Shell command or add to your keybindings:

{"keys":    ["ctrl+r"],
  "command": "executor_execute_shell",
  "args":    {"command": "clj -M -m user", "dir": "~/work/project"}},

"dir" is optional. If omitted, first open directory of current window is used.

Settings

You can set

"executor_file_regex": "^File "([^"]+)" line (\d+) col (\d+)",
"executor_base_dir": "<path>"

to make file names clickable in the output.

Optionally, also set

"executor_line_regex": "^\s+line (\d+) col (\d+)",

if line number information is printed on the next line.

These settings work both in global config and in projet file "settings".

Known limitations

  • Probably doesn’t work on Windows
  • ! in .gitignore is not supported
  • Global .gitignore is not supported
  • Sublime Text excludes are not supported
  • On large projects listing might take long time

Credits

Made by Niki Tonsky.

See also

Writer Color Scheme: A color scheme optimized for long-form writing.

Alabaster Color Scheme: Minimal color scheme for coding.

Sublime Profiles: Profile switcher.

Clojure Sublimed: Clojure support for Sublime Text 4.

License

MIT License