效率人生程序员工具癖

(效率人生)MAC必备工具Alfred入门使用

2018-08-06  本文已影响123人  若与

前言

如何获取Alfred

  1. 注意,免费用户只能使用其Features中的功能(即基本搜索和快速启动应用等功能,其实这已满足非重度使用者日常需求);
  2. 若要使用Workflows(即自定义插件的工作流),则需要购买Powerpack才能激活此功能。

如何打开Alfred

打开设置界面

打开操作界面

General(通用界面)

Features(特性界面)

Default Results(默认结果)

  1. Essentials:可设置搜索“应用程序”、“联系人”、“设置”、“Safari书签”。

  2. Extras:可设置搜索“文件夹”、“文本文件”、“压缩文件”、“个人文档目录”、“图片”、“AppleScript”等其他文件。

  3. Unintelligent:Search all file types搜索所有文件类型。若勾选此项不但影响巡查速度,还混淆默认搜索结果。Alfred建议用户使用Find+空格+文件名来查询文件或文件夹;使用Open+空格+文件名也可以。

  1. Search Scope:设置Alfred查询时会搜索的文件夹范围,可自己添加和删除。

  2. Fallbacks:若上面的查询搜索不到结果时,就会调用这里设置的网站或搜索引擎来进行进一步的查询。默认反馈结果为Google、Amazon、Wikipedia网页搜索。


    • 可点击界面右下角的+来添加更多的搜索引擎。

Web Search(网页搜索)

Clipboard(剪切板)

剪贴板增强工具是我强烈推荐的,提高效率杠杆的。


1password

1password一款密码管理工具,这里开启的话,就会直接和1password打通,网页直接打开登录。


i

system

系统命令快捷方式

Terminal / Shell

终端,程序员必用的软件,这里使用系统的终端。我改为iterm2,修改脚本的如下:

-- This is v0.7 of the custom script for AlfredApp for iTerm 3.1.1+
-- created by Sinan Eldem www.sinaneldem.com.tr

on alfred_script(q)
    if application "iTerm2" is running or application "iTerm" is running then
        run script "
            on run {q}
                tell application \"iTerm\"
                    activate
                    try
                        select first window
                        set onlywindow to true
                    on error
                        create window with default profile
                        select first window
                        set onlywindow to true
                    end try
                    tell the first window
                        if onlywindow is false then
                            create tab with default profile
                        end if
                        tell current session to write text q
                    end tell
                end tell
            end run
        " with parameters {q}
    else
        run script "
            on run {q}
                tell application \"iTerm\"
                    activate
                    try
                        select first window
                    on error
                        create window with default profile
                        select first window
                    end try
                    tell the first window
                        tell current session to write text q
                    end tell
                end tell
            end run
        " with parameters {q}
    end if
end alfred_script

演示:


Advanced(高级设置)

配置同步

下期预告

workflow与alfred进阶

上一篇下一篇

猜你喜欢

热点阅读