MCPcopy
hub / github.com/philc/vimium / extendSelection

Method extendSelection

content_scripts/mode_visual.js:537–548  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

535 }
536
537 extendSelection() {
538 const initialDirection = this.movement.getDirection();
539 // TODO(philc): Reformat this to be a plain loop rather than a closure.
540 return (() => {
541 const result = [];
542 for (const direction of [initialDirection, this.movement.opposite[initialDirection]]) {
543 this.movement.runMovement(direction, lineboundary);
544 result.push(this.movement.reverseSelection());
545 }
546 return result;
547 })();
548 }
549}
550
551class CaretMode extends VisualMode {

Callers 2

initMethod · 0.95
commandHandlerMethod · 0.95

Calls 4

getDirectionMethod · 0.80
runMovementMethod · 0.80
reverseSelectionMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected