Skip to main content

ICutsWords interface

Namespace: Arlecchino.Editing · Assembly: Arlecchino

Which part of a line is the word being finished. A line of shell reaches back to the last space, where a field holding one path is all one word.

public interface ICutsWords

Implemented by SpaceWords, WholeLine

Methods

MemberSummary
Cut(string, int)Cuts the word being typed out of the line.

Methods in detail

Cut(string, int)

public CompletionAsk Cut(string text, int caret);

Cuts the word being typed out of the line.

Parameters

NameTypeDescription
textstringThe line as it stands.
caretintWhere the caret is, which is where the word ends.

Returns CompletionAsk — The word and the line it was cut from.