module TermBuf::Completion

Overview

What an application is asked when someone presses the completion key, and what it answers.

A hook rather than a mechanism: the shard knows where the word is and what to do with the candidates, and nothing at all about what they should be.

Defined in:

termbuf/widgets/completion.cr

Class Method Summary

Class Method Detail

def self.common_prefix(candidates : Array(String)) : String #

The longest run every candidate begins with, which is as much as can be inserted without choosing between them.


[View source]