# 全局快捷键打开iTerm

{% embed url="<https://v.douyin.com/rRE4tB7/>" %}

{% embed url="<https://www.bilibili.com/video/BV1VA4y1S75G/>" %}

我发现我特别喜欢 VSCode 这 ctrl + \`

加反引号的快捷键

（就是来回隐藏和显示终端 大家看）

那习惯了这个快捷键以后

我就发现我在其他的 app 上

我也想快速的切换的 item

就没有那样的快捷键

那后来我研究了一下他有两种方式

这两种方式呢各有各的特点

比如说第一种他是 iterm 自带的哈

但是呢他有一个要求

就是你要求你这个必须先打开 iterm

如果你没启动 iterm 他是不好使的

那就是在这里设置一下

点 keys 然后 Hotkey 点这创建一个

然后在这点一下

比如我们设置一个快捷键

command + option + \`

ok

ok 这样就创建好了

大家看啊

它就会出来这样一个窗口 （半透明）

这样的然后再按一下他就隐藏了

那还有一种方法呢就是这样的

我们用这个 alfred 来配一个特别简单

大家看 就在这，一个快捷键

然后启动一下这个脚本

这个iterm这个workflow我已经

传到这个 github 上了啊

然后呢快捷键就是

command + \`

大家看这回不要求他启动iterm了

我就直接command + \`

他就启动了

如果你已经启动过呢

只不过他不在最前面呢

你也可以command把它激活过来

我觉得我更喜欢用这个

因为我经常会把它放到另一个显示器

上这样的话呢

我不用把鼠标移过去让他点一下

我就 command + \` 它就激活（获取到焦点）

我直接敲命令就可以了


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sunzsh.gitbook.io/xiaoshan.bug/quan-ju-kuai-jie-jian-da-kai-iterm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
