The omnibar provides kinds of functions that need user input, for example,
- Open url(from both bookmarks and history) with
t - Open bookmarks with
b - Open search engines with
og/ow... - Open commands with
:
Key bindings in Omnibar:
Enterto open selected item and close omnibar.Ctrl-Enterto open selected item, but keep omnibar open for more items to be opened.Shift-Enterto open selected item in current tab and close omnibar. If you'd like to open in current tab by default, please use go.- Tab to forward cycle through the candidates.
Shift-Tabto backward cycle through the candidates.Ctrl-. to show results of next pageCtrl-, to show results of previous pageCtrl-cto copy all listed items- In omnibar opened with
t:
Ctrl - d to delete from bookmark or history
- In omnibar opened with
b:
Ctrl - Shift - <any letter> to create vim-like mark
cmap could be used for Omnibar to change mappings, for example:
cmap('<Ctrl-n>', '<Tab>');
cmap('<Ctrl-p>', '<Shift-Tab>');Parameters
modeObject
Returns Omnibar Omnibar instance
List URLs like {url: "https://github.com", title: "github.com"} beneath omnibar
Parameters
itemsArray Array of url items with title.showFolderboolean True to show a item as folder if it has no property url.
Examples
Omnibar.listURLs ([{url: 'http://google.com', title: 'Google'}], false)Returns undefined
List commands when OmniBar opens
Returns undefined
Execute command after pressing the return key.
Displays any output if the command.
Returns boolean
The status bar displays the status of Surfingkeys current mode: Normal, visual, etc.
Parameters
uiObject
Returns StatusBar StatusBar instance
Opens the status bar
Returns undefined