alfred 开发

    科技2022-08-04  115

    alfred 开发

    Alfred is one of the best productivity apps for macOS. It lets you reduce dependency on the trackpad thereby accelerating your speed.

    Alfred是适用于macOS的最佳生产力应用程序之一。 它使您可以减少对触控板的依赖性,从而加快速度。

    By providing keywords and hotkey features for operations like file lookup, clipboard history, and web searches, Alfred surely knows how to boost user’s efficiency on a Mac.

    通过为文件查找,剪贴板历史记录和Web搜索等操作提供关键字和热键功能,Alfred无疑知道如何在Mac上提高用户的效率。

    However, Alfred is just a Spotlight on steroids unless you leverage workflows. Yes, workflows are the powerpack feature that pushes Alfred’s customizability by leaps and bounds.

    但是,除非您利用工作流程,否则Alfred只是类固醇的亮点。 是的,工作流是强大的功能,可推动Alfred的可定制性突飞猛进。

    At a very high level, workflows help reduce our dependency on the mouse and automate repetitive tasks. From a Spotify mini-player to Evernote and last password, workflows already find built-in integration with a range of macOS applications.

    从高度上讲,工作流有助于减少对鼠标的依赖并自动执行重复性任务。 从Spotify迷你播放器到Evernote以及最后的密码,工作流程已经发现与各种macOS应用程序的内置集成。

    Even better, we can create our own custom workflow scripts or download them from Alfred Forums or Packal hub.

    更好的是,我们可以创建自己的自定义工作流程脚本,也可以从Alfred论坛或Packal中心下载它们。

    In the next few sections, we’ll walk through some of the Alfred Workflows that I’ve been using daily. You could be a developer, designer, blogger, or just a macOS power user, but the following workflows should surely find their ways into your workspaces.

    在接下来的几节中,我们将逐步介绍我每天使用的一些Alfred工作流程。 您可以是开发人员,设计师,博客作者,也可以是macOS高级用户,但是以下工作流程一定会在工作区中找到它们的方式。

    1.快速差异 (1. Fast Diff)

    A file diff viewer is an indispensable utility for developers and writers. It helps them compare the version history of their code or drafts side-by-side. One would wish macOS introduces a built-in shortcut in Spotlight to quickly perform this someday.

    文件差异查看器是开发人员和编写人员必不可少的工具。 它可以帮助他们并排比较代码或草稿的版本历史记录。 希望macOS在Spotlight中引入内置的快捷方式,以便有一天能快速执行。

    Until then we have an amazing Fast Diff Alfred workflow that lets you visualize differences and optionally merge them across two files or folders in the Finder. Simply set a hotkey, select the first file, then the second, and finally press the hotkey again to open a window as shown below:

    在此之前,我们有一个了不起的Fast Diff Alfred工作流程,可让您可视化差异并有选择地将它们合并到Finder中的两个文件或文件夹中。 只需设置一个热键,选择第一个文件,然后选择第二个文件,最后再次按该热键即可打开一个窗口,如下所示:

    Screengrab by author 作者的屏幕截图

    2.字体真棒图标 (2. Font Awesome Icons)

    Font Awesome is a popular open-source icon set and toolkit that lets you pick a universal icon across the web and mobile apps. It’s incredibly useful when you’d wish to dynamically change app icons from the server-side.

    Font Awesome是一种流行的开源图标集和工具包,可让您在Web和移动应用程序中选择通用图标。 当您希望从服务器端动态更改应用程序图标时,此功能非常有用。

    But looking up the exact name or fa code of each icon can be a time-consuming task.

    但是查找每个图标的确切名称或fa code可能是一项耗时的任务。

    Gladly, we have an awesome Alfred workflow. It integrates the complete font awesome icon set in your Alfred search. After adding the workflow, simply enter the keyword fa to look through the font awesome icons and copy their codes.

    很高兴,我们有一个很棒的Alfred工作流程 。 它在您的Alfred搜索中集成了完整的字体真棒图标集。 添加工作流程后,只需输入关键字fa即可浏览字体真棒图标并复制其代码。

    Link 链接

    3.搜索苹果笔记 (3. Searching Apple notes)

    Apple notes is a great mac application especially for those who own an iOS device. It helps you keep todo lists in sync. Writers love it for drawing their mind maps and keeping drafts.

    Apple Notes是一个很棒的Mac应用程序,特别是对于那些拥有iOS设备的人。 它可以帮助您使待办事项列表保持同步。 作家喜欢用它绘制思维导图和保留草稿。

    But often, as your note-taking ability increases, it gets difficult to search through the Notes application. You’re forced to open the note application every time just to look up things as trivial as your password.

    但是,随着笔记能力的增强,通常很难在Notes应用程序中进行搜索。 您每次被迫打开记事本应用程序只是为了查找与密码一样琐碎的内容。

    Thankfully, we have an Apple Note Alfred Workflow that lets us search note titles, body and copy them to the clipboard without the need to open the application. Typing n in the Alfred window triggers this workflow. Thereafter you can search the keyword or optionally create a new note if none exists.

    值得庆幸的是,我们有一个Apple Note Alfred Workflow,可让我们搜索便笺标题,正文并将其复制到剪贴板,而无需打开应用程序。 在Alfred窗口中键入n会触发此工作流程。 此后,您可以搜索关键字,也可以选择创建一个新注释(如果不存在)。

    Download Link 下载链接

    Reminders app also comes with a similar Alfred workflow, but then Siri does the same with voice commands.

    提醒应用程序也带有类似的Alfred工作流程,但是Siri使用语音命令也是如此。

    4.查找同义词和反义词 (4. Find Synonyms and Antonyms)

    This one is for writers who’re fighting with repetition of words. Personally, I can very easily get bogged down and use the same set of phrases across articles.

    这是为那些反复说话而奋斗的作家的。 就个人而言,我很容易陷入困境,并在文章中使用相同的短语集。

    Alfred again comes to our rescue with a superb workflow for looking up synonyms and antonyms. This is really handy for non-native English writers and developers looking to spice up the otherwise boring documentations.

    Alfred再次以出色的工作流程来查找同义词和反义词,为我们提供了帮助。 对于希望为原本无聊的文档增添趣味的非本地英语作家和开发人员来说,这确实非常方便。

    The workflow pings an API to fetch the results. You can always create your own API key here and expand the set of results you’re looking for while setting this workflow.

    工作流程会ping API以获取结果。 您始终可以在此处创建自己的API密钥,并在设置此工作流程时扩展所需的结果集。

    There’s another workflow for finding synonyms, rhyming words, or searching for words that describe another word.

    还有另一种工作流程,用于查找同义词,押韵单词或搜索描述另一个单词的单词。

    Link 链接

    5.搜索新闻和开发者论坛 (5. Search News And Developer Forums)

    Developers spend most of their time inside an IDE be it Xcode or Atom. Naturally, searching for solutions on Stackoverflow or GitHub hinders their speed due to the inevitable context switch.

    开发人员将大部分时间都用在Xcode或Atom的IDE中。 自然,由于不可避免的上下文切换,在Stackoverflow或GitHub上搜索解决方案会阻碍其速度。

    While Stackoverflow can be quickly configured by leveraging Alfred web searches, StackExchange boasts of a bunch of sites. Surprisingly, we have a workflow to search through the different sites of StackExchange.

    尽管可以利用Alfred Web搜索来快速配置Stackoverflow,但StackExchange拥有大量站点。 令人惊讶的是,我们有一个工作流可以搜索StackExchange的不同站点。

    We can also connect workflows for looking up GitHub Repositories, HackerNews, and Reddit to stay up to speed with the latest trends. For logging into your GitHub just type gh > login in Alfred after installing the workflow and enter your credentials.

    我们还可以连接工作流以查找GitHub Repository,HackerNews和Reddit,以跟上最新趋势。 要登录到GitHub,只需在安装工作流程后键入gh > login Alfred,然后输入您的凭据。

    Github Github HackerNews HackerNews Reddit Reddit

    6.快速时间记录器和Gif转换器 (6. Quick Time Recorder And Gif Converters)

    It’s very rare for a designer or blogger to not capture and share a single screenshot at work. Most of us are required to take numerous screengrabs and GIFs be it for technical articles or for sharing it with a client.

    对于设计师或博客作者,在工作中不捕获并共享单个屏幕截图的情况非常罕见。 无论是用于技术文章还是与客户共享,我们大多数人都需要获取大量屏幕抓图和GIF。

    Though Quick Time Recording is smooth and macOS provides easy shortcuts for screengrabs but building GIFs out of videos always takes more than a few mouse clicks.

    尽管快速时间记录很流畅,并且macOS为屏幕抓取提供了简便的快捷方式,但是从视频中构建GIF总是需要多次单击鼠标。

    Once again, Alfred provides us two great workflows that can be used in combination. The first, QuickTime Recording lets you start a screen recording with three-letter keywords — qta for audio recording,qts for screen recording, and qtm for movie recording.

    Alfred再次为我们提供了两个可以结合使用的出色工作流程。 首先, QuickTime Recording使您可以使用三个字母的关键字来开始屏幕录制,其中qta用于音频录制, qts用于屏幕录制, qtm用于电影录制。

    Once the recording is saved, you can trigger the second workflow, Giffy that generates a GIF out of the last recording and saves it into the desired output directory.

    保存记录后,您可以触发第二个工作流程Giffy ,该工作流程从上一个记录生成GIF并将其保存到所需的输出目录中。

    So with the help of these workflows, we can quickly take screengrab videos and convert them into GIFs without a single click.

    因此,借助这些工作流程,我们可以快速拍摄屏幕抓图视频并将其转换为GIF,而无需单击。

    Link 链接

    7.颜色转换器 (7. Color Converters)

    If you’re a front-end developer, graphic designer, or an app developer by any means, I’m sure you’ve had headaches when selecting and converting colors across formats.

    无论您是前端开发人员,图形设计师还是应用程序开发人员,我相信您在跨格式选择和转换颜色时会遇到麻烦。

    True, a lot of IDEs today support color pickers and converters yet when a web developer sends a CSS color, one wishes there’s a way to quickly cross-check the palette and get the converted code in your desired format.

    的确,当今许多IDE支持颜色选择器和转换器,但是当Web开发人员发送CSS颜色时,人们希望有一种方法可以快速地对调色板进行交叉检查,并以所需的格式获取转换后的代码。

    Gladly, we have an Alfred Workflow named Colors just for that. It supports all CSS color formats such as Hex, RGB, HSL. You can also lookup colors by their name. Interestingly, for iOS developers, this workflow also lets you convert colors into NSColor and UIColor formats.

    很高兴,我们为此提供了一个名为Colors的Alfred Workflow。 它支持所有CSS颜色格式,例如Hex,RGB,HSL。 您还可以按名称搜索颜色。 有趣的是,对于iOS开发人员,此工作流程还允许您将颜色转换为NSColor和UIColor格式。

    The default keywords to trigger this converter are rgb, hsl, c and #. Here’s a look at the workflow in action:

    触发此转换器的默认关键字为rgb , hsl , c和# 。 看一下实际的工作流程:

    Screengrab by author 作者的屏幕截图

    结论 (Conclusion)

    If Alfred is the internet of your mac, Workflows are like websites. Without them, you can’t unleash the full potential and features of Alfred.

    如果Alfred是Mac的互联网,那么工作流就像网站。 没有它们,您将无法释放Alfred的全部潜力和功能。

    There are so many more workflows that you can try out such as Dash integration for documentation lookup, Figma for designers, Slack, Caffeine, etc.

    您可以尝试更多的工作流程,例如用于文档查找的Dash集成,用于设计人员的Figma,Slack,Caffeine等。

    I’d recommend you pick a few workflows that seem useful and get accustomed with them. Trying to include everything at once isn’t the best way to level up your productivity.

    我建议您选择一些看似有用的工作流程并熟悉它们。 尝试一次包含所有内容并不是提高生产力的最佳方法。

    That’s it for this one. Thanks for reading.

    这就是它了。 谢谢阅读。

    翻译自: https://medium.com/macoclock/7-alfred-workflows-for-developers-designers-and-bloggers-28a878236dcb

    alfred 开发

    相关资源:alfred 3.5 破解版下载
    Processed: 0.011, SQL: 8