Skip to content
This repository was archived by the owner on Oct 4, 2019. It is now read-only.

External tools plugin

tt.kilew edited this page Jan 20, 2014 · 6 revisions

Usage

Configuration

Example of configuration file that should be located at ~/.extools.cfg

{
  "version": "0.1",
  "tools": [
    {
      "name": "Echo",
      "key": {
        "character": "X",
        "command": true,
        "control": false,
        "shift": true,
        "option": false
      },
      "command": {
        "line": "echo Hello world!",
        "input": "none"
      }
    },
    {
      "name": "Dump Settings",
      "key": {
        "character": "X",
        "command": true,
        "control": false,
        "shift": true,
        "option": false
      },
      "command": {
        "line": "/bin/cat",
        "input": "json"
      }
    }
  ]
}

Version

"version": "0.1"
Just a version of this file. It's useful to have one.

Tools

"tools": [ ... ]
Array of tools that will be placed under File/Remote tools menu item in Xcode

Tool
{
  "name": "Dump Settings",
  "key": {...},
  "command": {...}
}

name - yep, this is tool name.
key - definition of the hot-key that will be associated with this tool

Command

line - line that will be actually executed
input - one of the possible input types. Currently supported are : "none" - no input will be passed to the script, "json" - TBD

Input types

Clone this wiki locally