本插件提供了丰富的属性,让它变得更加灵活。
name提示
同一个页面内支持创建多个 Terminal 实例,但它们的 name 属性必须互不相同,且全局唯一
contextstring
string
boolean
提示
此开关会影响拖拽功能,只有显示头部才能使用默认提供的拖拽功能
titlestring
DragConfig
提示
此项配置需要在 show-header 开启的情况下才有效。
如果不配置该属性,窗口宽高将会100%填充父元素,窗口宽高等同于父元素宽高
init-logMessage[] | null
null
则不显示number
number
string | TerminalCursorStyle
block
| underline
| bar
| none
type TerminalCursorStyle = 'block' | 'underline' | 'bar' | 'none'
enable-cursor-blink
boolean
boolean
boolean
string
CommandFormatterFunc
type CommandFormatterFunc = (cmd: string) => string;
enable-input-tips
boolean
boolean
InputTipsSelectHandlerFunc
* 输入提示选择处理函数
*
* @param command 当前用户输入的完整命令行
* @param cursorIndex 当前光标所处位置
* @param item 用户选择提示项
* @param callback 填充结束后需调用此函数返回新的命令行
*/
type InputTipsSelectHandlerFunc = (command: string, cursorIndex: number, item: InputTipItem, callback: (cmd: string) => void) => void
input-tips-search-handler
InputTipsSearchHandlerFunc
* 用户自定义命令搜索提示实现
*
* @param command 当前用户输入的完整命令行
* @param cursorIndex 当前光标所处位置
* @param commandStore 命令集合
* @param callback 搜索结束回调,回调格式为一个数组
*/
type InputTipsSearchHandlerFunc = (command: string, cursorIndex: number, commandStore: Command[], callback: (tips: InputTipItem[], openTips?: boolean) => void) => void
push-message-before
PushMessageBeforeFunc
type PushMessageBeforeFunc = (message: Message, name: String) => void;
command-sort-handler
CommandSortHandlerFunc
type CommandSortHandlerFunc = (a: any, b: any) => number;
input-filter
InputFilterFunc
type InputFilterFunc = (str1: string, str2: string, event: InputEvent) => string | null;
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4