微软发布 Windows Terminal Preview 1.3
喜欢就关注我们吧!
微软宣布推出 Windows Terminal Preview 1.3 版本,此版本带来的新特性包括:
命令面板(Command palette)
这项新功能可以用来搜索 Windows Terminal 中所有可用的命令,类似于 Visual Studio Code 中同样的功能。
可以通过键入 Ctrl+Shift+P 来调用命令面板。如果想更改此键绑定,可以将 commandPalette 命令添加到 settings.json 中的键绑定数组中。
{ "command": "commandPalette", "keys": "ctrl+shift+p" }
命令面板有两种模式:操作模式(action mode)和命令行模式(command line mode)。操作模式是默认模式,并将列出所有 Windows Terminal 命令。可以通过键入 > 进入命令行模式,然后输入任何 wt 命令,这些命令将在当前窗口中调用。
还可以通过将命令添加到 settings.json 文件来自定义要添加到命令选项板的操作。你的按键绑定应自动填充命令面板。
高级标签切换器(Advanced tab switcher)
高级标签切换器可在标签之间更轻松地导航。默认使用 useTabSwitcher 全局设置启用此功能。启用后,nextTab 和 prevTab 命令将使用标签切换器。默认情况下,这些键盘快捷键分别为 Ctrl+Tab 和 Ctrl+Shift+Tab。
标签颜色设置
现在可以为每个配置文件指定选项卡颜色。这可以通过将 tabColor 设置添加到配置文件,并将其设置为十六进制格式的颜色来完成。
提示:将选项卡颜色设置为与背景相同的颜色,以获得无缝的体验。
新的命令
新增了一些新命令,可以将它们添加到 settings.json 文件的键绑定中。默认情况下,以下命令均未绑定。
wt 命令作为键绑定
添加了使用键绑定执行 wt.exe 命令行参数的功能。这可以通过 wt 命令来完成。commandline 属性定义你要在当前窗口上调用的命令行参数。
// This command opens a new tab with PowerShell in a pane, a vertical pane running the Command Prompt profile in the C:\ directory, and a horizontal pane running the Ubuntu profile.
{ "command": { "action": "wt", "commandline": "new-tab pwsh.exe ; split-pane -p \"Command Prompt\" -d C:\\ ; split-pane -p \"Ubuntu\" -H" }, "keys": "ctrl+a" }
{ "command": { "action": "wt", "commandline": "new-tab pwsh.exe ; split-pane -p \"Command Prompt\" -d C:\\ ; split-pane -p \"Ubuntu\" -H" }, "keys": "ctrl+a" }
将输入发送到 shell
如果要使用键盘快捷键将输入发送到 shell,可以使用 sendInput 命令发送输入。
// This command navigates backwards through the shell history.
{ "command": { "action": "sendInput", "input": "\u001b[A" }, "keys": "ctrl+b" }
{ "command": { "action": "sendInput", "input": "\u001b[A" }, "keys": "ctrl+b" }
标签搜索
打开了许多标签页时,可以使用 tabSearch 命令在新的搜索框中搜索标签。
{ "command": "tabSearch", "keys": "ctrl+c" }
更改配色方案
可以使用 setColorScheme 命令设置活动窗口的配色方案。
{ "command": { "action": "setColorScheme", "name": "Campbell" }, "keys": "ctrl+d" }
Bug fixes
现在可以指定要复制的格式类型。 索引大于 9 的配置文件现在将在下拉列表中正确显示其快捷方式。 altGrAliasing:false 将不再破坏 AltGr
觉得不错,请点个在看呀
最新评论
推荐文章
作者最新文章
你可能感兴趣的文章
Copyright Disclaimer: The copyright of contents (including texts, images, videos and audios) posted above belong to the User who shared or the third-party website which the User shared from. If you found your copyright have been infringed, please send a DMCA takedown notice to [email protected]. For more detail of the source, please click on the button "Read Original Post" below. For other communications, please send to [email protected].
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。