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

Function search

content_scripts/hud.js:97–108  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

95 },
96
97 search(data) {
98 // NOTE(mrmr1993): On Firefox, window.find moves the window focus away from the HUD. We use
99 // postFindFocus to put it back, so the user can continue typing.
100 this.findMode.findInPlace(data.query, {
101 "postFindFocus": this.hudUI.iframeElement.contentWindow,
102 });
103
104 // Show the number of matches in the HUD UI.
105 const matchCount = FindMode.query.parsedQuery.length > 0 ? FindMode.query.matchCount : 0;
106 const showMatchText = FindMode.query.rawQuery.length > 0;
107 this.hudUI.postMessage({ name: "updateMatchesCount", matchCount, showMatchText });
108 },
109
110 // Hide the HUD.
111 // If :immediate is falsy, then the HUD is faded out smoothly (otherwise it is hidden

Callers

nothing calls this directly

Calls 2

findInPlaceMethod · 0.80
postMessageMethod · 0.80

Tested by

no test coverage detected