Skip to content

jimwhite/LightTable-Groovy

 
 

Repository files navigation

Groovy plugin for Light Table

This plugin aims to provide Groovy suppert for the Light Table IDE. At the moment it is very very rudementary. The short term plan is to grow it into a feasible groovy console/groovy shell alternative with some unique features enabled by the Light Table platform. A long term plan would be to slowly grow it into a feasible Groovy IDE alternative.

Installation

The plugin is available from the Light Table plugin manager under the name Groovy.

If you wish to submit pull request. Just fork this repo and install the plugin by cloning the repo into your Light Table plugin directory.

  $ cd /path/to/config/LightTable/plugins && git clone git@github.com:rundis/LightTable-Groovy.git

Requirements

  • You need to have groovy installed and available in your PATH. I would recommend using GVM

Features/Usage

Syntax highlighting

Simple syntax highlighting is provided throught the use of CodeMirror groovy mode.

Evaluate Groovy on Demand

  • ctrl/cmd-shift-enter evaluates all content in the current editor, prints any output to the console and shows results from execution on the last line.
  • ctrl/cmd-enter evaluates the selected text/current line, prints output to the console and shows results inline on the last selected line.

You can click on inline-results to view any binding variables (i.e. not local variables !) and their last value.

Enable logging

If you wish to enable debug logging from the groovy client. Add the following to your user.behaviors

  :editor.groovy [(:lt.plugins.groovy/client-enable-logging)]

Output is written to: $groovy-plugin-dir$/groovy-src/lt_groovy.log

Version history

  • 0.0.1 Support for simple syntax highligting and evaluation of groovy scripts with inline results.

License

GPLv3 license, same as Light Table. See LICENSE.md for the full text.

About

Groovy plugin for Light Table

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Clojure 35.6%
  • JavaScript 26.1%
  • Groovy 21.8%
  • Java 15.4%
  • Shell 1.1%