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

Method commandHandler

content_scripts/mode_visual.js:579–585  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

577 }
578
579 commandHandler(...args) {
580 this.movement.collapseSelectionToAnchor();
581 super.commandHandler(...(args || []));
582 if (this.modeIsActive) {
583 return this.movement.extendByOneCharacter(forward);
584 }
585 }
586
587 // When visual mode starts and there's no existing selection, we launch CaretMode and try to
588 // establish a selection. As a heuristic, we pick the first non-whitespace character of the first

Callers 1

handleKeyCharMethod · 0.45

Calls 2

extendByOneCharacterMethod · 0.80

Tested by

no test coverage detected