Skip to content

API reference Obsidian.API.Commands

CommandCompletion record

Suggestions for the word at the end of a partly typed command line.

public sealed record CommandCompletion : IEquatable<CommandCompletion>

In Obsidian.API.

Constructors

CommandCompletion(int, int, IReadOnlyList<CommandSuggestion>)

public CommandCompletion(int Start, int Length, IReadOnlyList<CommandSuggestion> Suggestions);

Suggestions for the word at the end of a partly typed command line.

Parameters

Start
Index in the command line where the word being completed starts.
Length
Number of characters a chosen suggestion replaces.
Suggestions
Matching suggestions, sorted by text.

Properties

Length

public int Length { get; init; }

Number of characters a chosen suggestion replaces.

Start

public int Start { get; init; }

Index in the command line where the word being completed starts.

Suggestions

public IReadOnlyList<CommandSuggestion> Suggestions { get; init; }

Matching suggestions, sorted by text.

On this page