Windows Terminal Preview 1.19 现已发布,引入了 Broadcast Input、Web Search、Suggestions UI 等新功能。具体更新内容如下:
Broadcast Input 允许将一个终端窗格的内容 broadcast 到选项卡中的所有其他窗格。要打开 Broadcast Input,可在命令面板中选择 “Toggle broadcast input to all panes”。你还可以将 Broadcast Input 设置为键绑定操作。
默认情况下,Web 搜索将在必应上进行搜索。如果想让 Web Search 查询其他 URL,可在settings.json文件中添加"searchWebDefaultQueryUrl"作为全局变量,并将其设置为不同的 URL。下面是该设置的默认值示例:
"searchWebDefaultQueryUrl": "https://www.bing.com/search?q=%22%s%22"
此功能也可以作为webSearch操作使用。
现在支持在命令提示符中输入表情符号。
现在支持 unfocused acrylic。效果图:
在 Suggestions UI 中使用 SendInput Actions
Suggestions UI 还可以使用sendInputactions 作为建议源。sendInputactions 是一种将文本输入发送到 shell 的操作。如果为自己喜欢的命令创建了一堆sendInputactions,那么将不再需要在每次使用时都进行键入。
{ "command": { "action": "showSuggestions", "source": "all", "useCommandline": true }, "keys": "ctrl+y" },
实验性 Shell Completion Menu
Suggestions UI 还可以显示来自 PowerShell 7 中的 Predictors 的建议。可通过使用 shell completion protocol 修改 PowerShell 配置文件,并向settings.json文件添加一些内容,以启用该功能。
开发团队目前正在迭代不同的 shell completion protocol,以允许用户更轻松地启用此功能。有关如何设置此功能的更多信息,可查看 GitHub 存储库中有关 Experimental Shell Completion Menu 的 Wiki。
本文链接:http://www.28at.com/showinfo-26-11835-0.htmlWindows Terminal Preview 1.19 发布,你了解了吗?
声明:本网页内容旨在传播知识,不代表本站观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。