struct Fancyline::Completion

Overview

Contains a completion, which consists of a replacement range and the replacement word.

Defined in:

fancyline/completion.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(range : Range(Int32, Int32), word : String, display_word = nil) #

[View source]

Instance Method Detail

def display_word : String #

Word to display in the completion suggestion list. If none given, defaults to #word.


[View source]
def range : Range(Int32, Int32) #

Replacement range in the line buffer


[View source]
def word : String #

Word to replace into the range


[View source]