MCPcopy Create free account
hub / github.com/continuedev/continue / deleteWordForward

Method deleteWordForward

extensions/cli/src/ui/TextBuffer.ts:132–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130 }
131
132 deleteWordForward(): void {
133 const wordEnd = this.findWordBoundary(this._cursor, "right");
134 if (wordEnd > this._cursor) {
135 this._text =
136 this._text.slice(0, this._cursor) + this._text.slice(wordEnd);
137 }
138 }
139
140 private deleteLineBackward(): void {
141 if (this._cursor === 0) {

Callers 2

handleCtrlKeyMethod · 0.95
TextBuffer.test.tsFile · 0.80

Calls 1

findWordBoundaryMethod · 0.95

Tested by

no test coverage detected