Sha256: fc29065087b2e335fa8df6cba51de0d85aaa21cf3e9f6d5e20234071c007400a

Contents?: true

Size: 517 Bytes

Versions: 9

Compression:

Stored size: 517 Bytes

Contents

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bond-0.3.5 lib/bond/rawline.rb
bond-0.3.4 lib/bond/rawline.rb
bond-0.3.3 lib/bond/rawline.rb
bond-0.3.2 lib/bond/rawline.rb
bond-0.3.1 lib/bond/rawline.rb
bond-0.3.0 lib/bond/rawline.rb
bond-0.2.2 lib/bond/rawline.rb
bond-0.2.1 lib/bond/rawline.rb
bond-0.2.0 lib/bond/rawline.rb