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

Method findNext

content_scripts/mode_find.js:367–384  ·  view source on GitHub ↗
(backwards)

Source from the content-addressed store, hash-verified

365 }
366
367 static findNext(backwards) {
368 // Bail out if we don't have any query text.
369 const nextQuery = FindMode.getQuery(backwards);
370 if (!nextQuery) {
371 HUD.show("No query to find.", 1000);
372 return;
373 }
374
375 Marks.setPreviousPosition();
376 FindMode.query.hasResults = FindMode.execute(nextQuery, { backwards });
377
378 if (FindMode.query.hasResults) {
379 focusFoundLink();
380 return newPostFindMode();
381 } else {
382 return HUD.show(`No matches for '${FindMode.query.rawQuery}'`, 1000);
383 }
384 }
385
386 checkReturnToViewPort() {
387 if (this.options.returnToViewport) {

Callers 3

findSelectedHelperFunction · 0.80
performFindFunction · 0.80
performBackwardsFindFunction · 0.80

Calls 5

focusFoundLinkFunction · 0.85
newPostFindModeFunction · 0.85
getQueryMethod · 0.80
executeMethod · 0.80
showMethod · 0.45

Tested by

no test coverage detected