Sha256: 01a0e22f2c96eb220e753bfeda6e305c0d05cd36607f99e63a1ca6bf97bbc9ab

Contents?: true

Size: 916 Bytes

Versions: 1

Compression:

Stored size: 916 Bytes

Contents

Live
====

Live is like IRC only it is meant to be used from a text editor, it essentially polls a *nix pipe and evaluates its contents. 
It was devised for audiovisual livecoding (ruby-processing and scruby), a block can be bound to a key and can be called later by a keystroke.

Usage
-----

    $ live

open a new terminal

    $ echo 'hello' > /tmp/live-rb

You will see the code evaluated in the first terminal

    $ echo 'bind_key(:a){ 'key a was pressed' }' > /tmp/live-rb

When you press the key 'a' with focus on the first terminal it will call the block

Vim
---

To use from vim paste this in your .vimrc file

    function EvalLiveRuby() range
      let text = [join(getline(a:firstline, a:lastline), ';')]
      return writefile(text, '/tmp/live-rb')
    endfunction

    map <Leader>x :call EvalLiveRuby()<enter>

Then by pressing leader and x you will execute the file or range in the live session


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
live-0.1.0 README.rdoc