MCPcopy Index your code
hub / github.com/philc/vimium / findSelectedHelper

Function findSelectedHelper

content_scripts/mode_normal.js:79–85  ·  view source on GitHub ↗
(backwards)

Source from the content-addressed store, hash-verified

77};
78
79function findSelectedHelper(backwards) {
80 const selection = window.getSelection().toString();
81 if (!selection) return;
82 FindMode.updateQuery(selection);
83 FindMode.saveQuery();
84 FindMode.findNext(backwards);
85}
86
87const NormalModeCommands = {
88 // Scrolling.

Callers 2

findSelectedFunction · 0.85
findSelectedBackwardsFunction · 0.85

Calls 3

updateQueryMethod · 0.80
saveQueryMethod · 0.80
findNextMethod · 0.80

Tested by

no test coverage detected