Sha256: b4469d47dd7eaee14e630bd8e6ee218cbde915d8d45ee82a2c2287789f07766c

Contents?: true

Size: 521 Bytes

Versions: 8

Compression:

Stored size: 521 Bytes

Contents

module Bond
  # A readline plugin for use with {Rawline}[http://github.com/h3rald/rawline/tree/master]. This plugin
  # should be used in conjunction with {a Rawline shell}[http://www.h3rald.com/articles/real-world-rawline-usage].
  module Rawline
    def setup
      require 'rawline'
      ::Rawline.completion_append_character = nil
      ::Rawline.basic_word_break_characters= " \t\n\"\\'`><;|&{(" 
      ::Rawline.completion_proc = self
    end

    def line_buffer
      ::Rawline.editor.line.text
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
cldwalker-bond-0.1.0 lib/bond/rawline.rb
cldwalker-bond-0.1.1 lib/bond/rawline.rb
cldwalker-bond-0.1.3 lib/bond/rawline.rb
cldwalker-bond-0.1.4 lib/bond/rawline.rb
bond-0.1.0 lib/bond/rawline.rb
bond-0.1.1 lib/bond/rawline.rb
bond-0.1.3 lib/bond/rawline.rb
bond-0.1.4 lib/bond/rawline.rb