filter

package
v0.0.0-...-91dc524 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2023 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package filter implements the Elvish filter DSL.

The filter DSL is a subset of Elvish's expression syntax, and is useful for filtering a list of items. It is currently used in the listing modes of the interactive editor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Highlight

func Highlight(q string) (ui.Text, []error)

Types

type Filter

type Filter interface {
	Match(s string) bool
}

Filter represents a compiled filter, which can be used to match text.

func Compile

func Compile(q string) (Filter, error)

Compile parses and compiles a filter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL