MCPcopy Create free account
hub / github.com/codeaashu/claude-code / _selectWordAtCursor

Method _selectWordAtCursor

src/server/web/public/terminal.js:2078–2084  ·  view source on GitHub ↗
(e3, t3)

Source from the content-addressed store, hash-verified

2076 return e3[1] > t3[1] && e3[1] < i3[1] || t3[1] === i3[1] && e3[1] === t3[1] && e3[0] >= t3[0] && e3[0] < i3[0] || t3[1] < i3[1] && e3[1] === i3[1] && e3[0] < i3[0] || t3[1] < i3[1] && e3[1] === t3[1] && e3[0] >= t3[0];
2077 }
2078 _selectWordAtCursor(e3, t3) {
2079 var _a, _b;
2080 const i3 = (_b = (_a = this._linkifier.currentLink) == null ? void 0 : _a.link) == null ? void 0 : _b.range;
2081 if (i3) return this._model.selectionStart = [i3.start.x - 1, i3.start.y - 1], this._model.selectionStartLength = (0, _.getRangeLength)(i3, this._bufferService.cols), this._model.selectionEnd = void 0, true;
2082 const s3 = this._getMouseBufferCoords(e3);
2083 return !!s3 && (this._selectWordAt(s3, t3), this._model.selectionEnd = void 0, true);
2084 }
2085 selectAll() {
2086 this._model.isSelectAllActive = true, this.refresh(), this._onSelectionChange.fire();
2087 }

Callers 2

_handleDoubleClickMethod · 0.80
rightClickSelectMethod · 0.80

Calls 2

_getMouseBufferCoordsMethod · 0.80
_selectWordAtMethod · 0.80

Tested by

no test coverage detected