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

Function open

content_scripts/vomnibar.js:75–84  ·  view source on GitHub ↗
(sourceFrameId, vomnibarShowOptions)

Source from the content-addressed store, hash-verified

73 // newTab: Optional. Whether to open the result in a new tab.
74 // keyword: A keyword which will scope the search to a UserSearchEngine.
75 open(sourceFrameId, vomnibarShowOptions) {
76 this.init();
77 // The Vomnibar cannot coexist with the help dialog (it causes focus issues).
78 HelpDialog.abort();
79 Utils.assertType(VomnibarShowOptions, vomnibarShowOptions);
80 this.vomnibarUI.show(
81 Object.assign(vomnibarShowOptions, { name: "activate" }),
82 { sourceFrameId, focus: true },
83 );
84 },
85};
86
87globalThis.Vomnibar = Vomnibar;

Callers 1

main.jsFile · 0.85

Calls 2

initMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected