type
status
date
summary
tags
category
icon
Mac上面的有些应用支持全局快捷键,有些则不支持,例如Notion、印象笔记这类不支持全局快捷键打开,经常需要切换图标,或者使用
Command + Tab
进行切换,甚是不方便呀。本文介绍两种给App创建创建全局打开的快捷键:
- 基于Automator创建全局快捷键;
- 基于Alfred创建全局快捷键(🌟🌟🌟);
- 基于Raycast创建全局快捷键(🌟🌟🌟🌟🌟)
1.基于Automator创建
Automator支持定义一系列操作,打开引用程序只是其中一个功能小项,创建全局快捷键稍微有点费劲,主体流程为:
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F22b08a00-316f-490b-8b61-6490307a3886%2FUntitled.png?table=block&id=baf34099-682d-44fb-b817-e00dff70432c&t=baf34099-682d-44fb-b817-e00dff70432c&width=2006&cache=v2)
- 首先打开Automator,选择 quick action:
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fb51b007b-977b-49af-a5d7-057104479e63%2FUntitled.png?table=block&id=b2a43f67-77ae-4bed-bfd1-c4f3d8abbb13&t=b2a43f67-77ae-4bed-bfd1-c4f3d8abbb13&width=384&cache=v2)
- 配置一下,然后使用
Command + S
保存
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F0a6605e8-a32c-4091-8166-1fef623b40b6%2FUntitled.png?table=block&id=0140a7b1-4c06-4d25-8648-10e019d67db3&t=0140a7b1-4c06-4d25-8648-10e019d67db3&width=2804&cache=v2)
- 打开设置,找到keyboard,然后给创建这个设置快捷键:
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F222a6f75-e6ee-479a-a5c4-338a58781f0b%2FUntitled.png?table=block&id=e7d73eab-f26f-443d-afaf-93c2f4887dff&t=e7d73eab-f26f-443d-afaf-93c2f4887dff&width=288&cache=v2)
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F4ea9b240-ee39-4753-ae10-8f53e17def94%2FUntitled.png?table=block&id=6fd9ca53-c3f6-4eb7-94d4-46119fd15a64&t=6fd9ca53-c3f6-4eb7-94d4-46119fd15a64&width=1340&cache=v2)
然后就可以使用新建的快捷键打开Application了,但有一个问题是,只能打开不用通过设置的快捷键隐藏,使用上面可能有点别扭,但是可以使用系统自带的快捷键
Command + H
隐藏。2.使用Alfred创建全局快捷键(🌟🌟🌟)
Alfred可谓是功能非常的强大,用习惯之后效率提升也是非常的明显,同时也支持自定义workflow,这个牛非常的牛逼了。创建快捷键用的就是这个能力,使用起来非常的简单:
- 创建一个空的workflow, 然后填一下名称:
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fe3b30dee-bc05-46f3-bda9-b366ca5b13f4%2FUntitled.png?table=block&id=a90b93ce-32b3-4dda-9b2f-8eb4dac32c46&t=a90b93ce-32b3-4dda-9b2f-8eb4dac32c46&width=1166&cache=v2)
- 然后配置一下workflow,添加一个hotkey,然后添加一个Lauch App/files 的action,保存即可:
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F0389cc0c-93f0-4eee-a11e-036532c5563f%2FUntitled.gif?table=block&id=74b05144-7778-4484-8e73-1252dba80894&t=74b05144-7778-4484-8e73-1252dba80894&width=1560&cache=v2)
使用Alfred添加快捷键,可以设置是否控制App的显示隐藏。如果App是不可见状态,按下快捷键就是展示,反之隐藏,这个比Automator更方便很多,如果使用Alfred则推荐这种方式。
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F30b551f5-f4b5-4a12-8807-3a2255f1f649%2FUntitled.png?table=block&id=5eeb6905-f6cf-44ff-8d7f-a8b563e55a75&t=5eeb6905-f6cf-44ff-8d7f-a8b563e55a75&width=1228&cache=v2)
3.基于Raycast创建全局快捷键(🌟🌟🌟🌟🌟)
如果说Alfred使用方便,那RayCast创建快捷键则时原生支持的能力。和普通软件设置快捷键一样的便捷,只需要要一步:
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F9047f58e-5ddf-46fd-a4b7-6d1a8d133c25%2F86dbf6ce-9550-4ed2-b14c-1e0f428296a2%2FUntitled.png?table=block&id=cfaaf29b-7093-4973-8b4f-0a68e580f61e&t=cfaaf29b-7093-4973-8b4f-0a68e580f61e&width=2000&cache=v2)
找到想要设置快捷键的软件,一键设置即可。