enum Tabular::Directive

Overview

A bit map representing the different behaviors the shell can be instructed to have once completions have been provided.

Defined in:

tabular/enums.cr

Enum Members

None = 0

Indicates to let the shell perform its default behavior after completions have been provided.

Error = 1

Indicates an error occurred and completions should be ignored.

NoSpace = 2

Indicates that the shell should not add a space after the completion even if there is a single completion provided.

NoFile = 4

Indicates that the shell should not provide file completion even when no completion is provided.

FilterExt = 8

Indicates that the provided completions should be used as file extension filters.

FilterDir = 16

Indicates that only directory names should be provided in file completion.

KeepOrder = 32

Indicates that the shell should preserve the order in which the completions are provided

All = 63

Instance Method Summary

Instance Method Detail

def error? #

Returns true if this enum value contains Error


[View source]
def filter_dir? #

Returns true if this enum value contains FilterDir


[View source]
def filter_ext? #

Returns true if this enum value contains FilterExt


[View source]
def keep_order? #

Returns true if this enum value contains KeepOrder


[View source]
def no_file? #

Returns true if this enum value contains NoFile


[View source]
def no_space? #

Returns true if this enum value contains NoSpace


[View source]
def none? #

Returns true if this enum value contains None


[View source]
def show #

Returns the String representation that will be sent to the shell.


[View source]