如下列舉一些我的喜歡的 workflow。
查詢變量名,且能夠以駝峯法、下劃線等方式展示,下載地址:php
https://github.com/xudaolong/CodeVar
在 Alfred 中集成 Dash,能夠使用 dash php xxx
或 php xxx
查詢 Dash 中的 API 文檔。能夠從 Dash 的 Integration
中下載 Alfred 的 workflow:html
集成豆瓣搜索,能夠使用 movie xxx
, music xxx
, book xxx
分別搜索電影、音樂和圖書,下載地址以下:git
https://github.com/lucifr/Alfredv2-Extensions/raw/master/Douban.alfredworkflow
谷歌搜索,下載地址:github
https://github.com/ethan-funny/Google-Alfred3-Workflow
查詢 HTTP 的狀態碼,如 http 503
,下載地址:shell
https://github.com/JoelQ/alfred-http/releases/tag/v0.1.0
建立一個文件/文件夾,下載地址:segmentfault
http://www.packal.org/workflow/new-files
使用 Sublime Text 打開某一文件,下載地址:windows
https://github.com/franzheidl/alfred-workflows
查詢世界天氣,下載地址:session
http://dferg.us/weather-for-alfred-2/
有道詞典:app
http://www.cnblogs.com/kaiye/p/5115005.html
集成滴答訂單,能夠快速新建任務,下載地址:dom
https://github.com/jedy/alfred-tick
該插件須要 Python 模塊的支持,首先安裝 pip:
sudo easy_install pip
而後安裝所需的模塊:
pip install tzlocal alfred
下載地址:
https://github.com/wofeiwo/alfred-baidu-map
首先將 Terminal 的 Application 改變爲 Custom:
而後在輸入欄中輸入:
on write_to_file(this_data, target_file, append_data) try set the target_file to the target_file as string set the open_target_file to open for access file target_file with write permission if append_data is false then set eof of the open_target_file to 0 write this_data to the open_target_file starting at eof close access the open_target_file return true on error try close access file target_file end try return false end try end write_to_file on alfred_script(q) -- Write the command to run to a file. This is done because Applescript quoting is impossible to get right, esp. for backslashes. set tmp_dir to path to temporary items as string from user domain set applescript_alfred_file to tmp_dir & "alfredscript" set alfred_file to POSIX path of applescript_alfred_file write_to_file(q & return, applescript_alfred_file, false) -- Create this file, which prevents iTerm2 from restoring a saved window arrangement. do shell script "touch ~/Library/Application' Support/iTerm/quiet'" -- Test cases: -- 1. iTerm2 running, has windows open. Should open a new window for Alfred command. -- 2. iTerm2 running, no windows open. Should open a new window for Alfred command. -- 3. iTerm2 not running, set to restores arrangement. Should not restore arrangement but open a new window for the Afred command. -- 4. iTerm2 not running. No windows to restore. Should open a single window for the Alfred command. -- 5. iTerm2 not running. Has windows to restore. Restores windows and then opens a new window for the Alfred command. -- Compose a script. This is necessary because compiling in a 'tell application' command causes the app to be launched, which would happen prior to the creation of the quiet file. set theScript to "tell application \"iTerm2.app\" if (exists current window) then tell current window to create tab with default profile tell current session of current window write contents of file \"" & alfred_file & "\" end tell else create window with default profile tell current session of current window write contents of file \"" & alfred_file & "\" end tell end if activate end tell" -- Invoke the script. run script theScript -- Clean up -- do shell script "rm -f ~/Library/Application' Support/iTerm/quiet' /tmp/alfredscript" end alfred_script
對以上的 workflow, 你們也能夠經過 百度雲分享 下載,密碼: jgvu。
在這裏找到了一些與開發有關的 alfred workflow:
https://github.com/willfarrel...