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

Method fillInMarkers

content_scripts/link_hints.js:811–825  ·  view source on GitHub ↗
(hintMarkers)

Source from the content-addressed store, hash-verified

809 }
810
811 fillInMarkers(hintMarkers) {
812 const hintStrings = this.hintStrings(hintMarkers.length);
813 if (hintMarkers.length != hintStrings.length) {
814 // This can only happen if the user's linkHintCharacters setting is empty.
815 console.warn("Unable to generate link hint strings.");
816 } else {
817 for (let i = 0; i < hintMarkers.length; i++) {
818 const marker = hintMarkers[i];
819 marker.hintString = hintStrings[i];
820 if (marker.isLocalMarker()) {
821 marker.element.innerHTML = spanWrap(marker.hintString.toUpperCase());
822 }
823 }
824 }
825 }
826
827 //
828 // Returns a list of hint strings which will uniquely identify the given number of links. The hint

Callers

nothing calls this directly

Calls 3

hintStringsMethod · 0.95
spanWrapFunction · 0.85
isLocalMarkerMethod · 0.80

Tested by

no test coverage detected