SearchDisplay

public enum SearchDisplay

How a text-search result is rendered. The matches are the same across all of these — only the presentation differs.

Entries

Link copied to clipboard

Lines A-B header + the window text, blank-line separated. The default.

Link copied to clipboard

The window text only — no line headers.

Link copied to clipboard

The 1-based line ranges only (e.g. 12-16), one per line.

Link copied to clipboard

Match #N header + text, with a horizontal-rule separator between matches. A compact, numbered format for listing several results.

Link copied to clipboard

Lines A-B (score S) header + text — scores included.

Link copied to clipboard

A JSON array of {line, start, end, score, text} objects.

Functions

Link copied to clipboard
public static SearchDisplay valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
public static Array<SearchDisplay> values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.