Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 1.67 KB

README.markdown

File metadata and controls

42 lines (25 loc) · 1.67 KB

TextMate to Intype Bundles Convertor

Building from source (using IntelliJ Idea)

Clone the sources

  • If you cloned the sources using IntelliJ Idea internal tools, it should detect the project file
  • If you used some other tool to clone the sources, locate the tm2i.ipr file and open it in IntelliJ Idea.

Now you should be able to build the project using Main menu > Build > Make project, or Make Module tm2i.

The compiled package should be in PROJECT_DIR\out\artifacts\tm2i_jar\.

How to use the package

Using the package is pretty simple (The trailing slashes are important):

java -jar tm2i.jar PathToInput\ PathToOutput\

Where:

  • PathToInput - path to the directory, which contains your *.tmbundle directories.
  • PathToOutput - path to any directory, where the converted bundles will be copied to

Example:

java -jar tm2i.jar c:/work/myTextMateBundles c:/work/convertedBundles

Running from source

Clone the sources and setup the project as described in previous section.

To run the convertor from sources, you need to setup a Run configuration first:

  1. Go to Main menu > Run and choose Edit configurations
  2. Add a new configuration based on the Application default type
  3. Name the configuration, or leave the name blank (it will be generated from the Main class name)
  4. Select the Main class, which should be: com.inotai.convertor.textmate.Main
  5. Fill in the program arguments (they are space separated) with the PathToInput and PathToOutput as described in the How to use the package section above.
  6. Save

Now you can run the application and it will convert any bundle in the input directory and copy it in the output directory.