CommandPallete
show a searchable command palette (cmd/ctrl+p)
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
dynamicCmds: *[] |
|
public |
keyDown: * |
Private Members | ||
private |
_bookmarkActiveIcon: string |
|
private |
_bookmarkInactiveIcon: string |
|
private |
_cursorIndex: number |
|
private |
_defaultIcon: string |
|
private |
_findTimeoutId: number |
|
private |
_lastSearch: string |
|
private |
_numResults: number |
Method Summary
Public Methods | ||
public |
addDynamic(category: *, title: *, func: *, icon: *): * |
|
public |
addResult(cmd: *, num: *, idx: *): * |
|
public |
close() |
|
public |
doSearch(str: *, searchId: *) |
|
public |
getBookmarkIconForCmd(cmdName: *): * |
|
public |
isCmdInSidebar(cmdName: *): * |
|
public |
isVisible(): * |
|
public |
navigate(dir: *) |
|
public |
onBookmarkIconClick(ev: *) |
|
public |
onResultClick(ev: *) |
|
public |
removeDynamic(id: *) |
|
public |
show() |
Public Constructors
public constructor() source
Public Members
public dynamicCmds: *[] source
public keyDown: * source
Private Members
private _bookmarkActiveIcon: string source
private _bookmarkInactiveIcon: string source
private _cursorIndex: number source
private _defaultIcon: string source
private _findTimeoutId: number source
private _lastSearch: string source
private _numResults: number source
Public Methods
public addDynamic(category: *, title: *, func: *, icon: *): * source
Params:
Name | Type | Attribute | Description |
category | * | ||
title | * | ||
func | * | ||
icon | * |
Return:
* |
public addResult(cmd: *, num: *, idx: *): * source
Params:
Name | Type | Attribute | Description |
cmd | * | ||
num | * | ||
idx | * |
Return:
* |
public close() source
public doSearch(str: *, searchId: *) source
Params:
Name | Type | Attribute | Description |
str | * | ||
searchId | * |
public getBookmarkIconForCmd(cmdName: *): * source
Params:
Name | Type | Attribute | Description |
cmdName | * |
Return:
* |
public isCmdInSidebar(cmdName: *): * source
Params:
Name | Type | Attribute | Description |
cmdName | * |
Return:
* |
public navigate(dir: *) source
Params:
Name | Type | Attribute | Description |
dir | * |
public onBookmarkIconClick(ev: *) source
Params:
Name | Type | Attribute | Description |
ev | * |
public onResultClick(ev: *) source
Params:
Name | Type | Attribute | Description |
ev | * |
public removeDynamic(id: *) source
Params:
Name | Type | Attribute | Description |
id | * |