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

Method findInPlace

content_scripts/mode_find.js:141–154  ·  view source on GitHub ↗
(query, options)

Source from the content-addressed store, hash-verified

139 }
140
141 findInPlace(query, options) {
142 // If requested, restore the scroll position (so that failed searches leave the scroll position
143 // unchanged).
144 this.checkReturnToViewPort();
145 FindMode.updateQuery(query);
146 // Restore the selection. That way, we're always searching forward from the same place, so we
147 // find the right match as the user adds matching characters, or removes previously-matched
148 // characters. See #1434.
149 this.restoreSelection();
150 query = FindMode.query.isRegex
151 ? FindMode.getQueryFromRegexMatches()
152 : FindMode.query.parsedQuery;
153 FindMode.query.hasResults = FindMode.execute(query, options);
154 }
155
156 static updateQuery(query) {
157 let pattern;

Callers 1

searchFunction · 0.80

Calls 5

checkReturnToViewPortMethod · 0.95
restoreSelectionMethod · 0.95
updateQueryMethod · 0.80
executeMethod · 0.80

Tested by

no test coverage detected