macos使用sshfs
There are two kinds of Mac users: those who use Spotlight constantly, and those who ignore it.
Mac用户有两种:经常使用Spotlight的用户和忽略它的用户。
If you’re in the second category, that’s too bad: everything about using a Mac gets faster with Spotlight. This search tool doubles as a text-based Siri alternative, and with just a few keystrokes, you can launch or look up anything. Getting started couldn’t be easier: just click the little magnifying glass.
如果您属于第二类,那就太糟糕了:使用Mac,使用Spotlight可以使所有操作变得更快。 此搜索工具可以用作基于文本的Siri替代品,并且只需几次击键就可以启动或查找任何内容。 入门并非易事:只需单击小放大镜即可。
But if you really want to be quick, don’t click: press Command+Space on your keyboard to launch Spotlight. If you only learn one Mac keyboard shortcut, make it this one. You’ll instantly see a blank search window.
但是,如果您真的想快一点,请不要单击:在键盘上按Command + Space键以启动Spotlight。 如果您仅学习一种Mac键盘快捷方式 ,请使用它。 您会立即看到一个空白的搜索窗口。
What can this search box do? A lot: just start typing. Let’s dive in, starting with the basics and working our way toward lesser known features.
此搜索框可以做什么? 很多:只需开始输入即可。 让我们开始学习,从基础知识开始,逐步开发鲜为人知的功能。
入门:查找文件 (Getting Started: Looking for Files)
The basic functionality of Spotlight is instant search of every file on your computer. A very simple use for this is to launch software: just type the name of the program.
Spotlight的基本功能是即时搜索计算机上的每个文件。 一个很简单的用法就是启动软件:只需输入程序名称即可。
Results will pop up instantly as you type, and you can hit “Enter” right away to launch an app or game. It feels silly at first, but it’s actually faster than clicking an icon somewhere—you never even have to take your hands off the keyboard. Once you get used to it, you will seriously wonder why you ever opened software any other way.
输入时,结果将立即弹出,您可以立即按“ Enter”以启动应用程序或游戏。 刚开始时感觉很傻,但是实际上比单击某个地方的图标要快-您甚至不必从键盘上移开手。 一旦习惯了,您就会严重想知道为什么您曾经以其他方式打开软件。
You can also use this to launch individual panels in the System Preferences, again just by typing the name.
您也可以使用它来启动“系统偏好设置”中的各个面板,只需再次输入名称即可。
This becomes really useful when you need to quickly find a file. If you want to quickly find a photo you took in Paris, just hit Command+Space and search for the word “Paris.”
当您需要快速查找文件时,这将变得非常有用。 如果您想快速找到在巴黎拍摄的照片,只需点击Command + Space并搜索“巴黎”一词。
In the above example, you’ll notice that music came up before photos. No matter: you can use the up and down arrow keys to quickly jump from item to item. As you scroll through the photos, you’ll see thumbnails in the right panel.
在上面的示例中,您会注意到音乐先于照片。 没关系:您可以使用向上和向下箭头键快速从一个项目跳到另一个项目。 滚动浏览照片时,您会在右侧面板中看到缩略图。
Searches look at filenames, but in the case of documents, Spotlight also looks inside the file. For example: way back in college, I helped publish a parody publication that was “written” by a cat named Muffles. All these years later, searching Spotlight for “Muffles” brings up the document, even though “muffles” is nowhere in the filename.
搜索会查看文件名,但对于文档,Spotlight还会查看文件内部。 例如:回到大学时,我曾协助出版过模仿出版物,该出版物是由一只叫Muffles的猫“写”的。 多年以来,即使在文件名中没有“ muffles”,在Spotlight中搜索“ Muffles”也会显示该文档。
–
–
If you’re like me, sometimes you can’t remember where you put a document, or what its filename was. In those cases, typing a phrase you know is in the document can help. You can open the document by hitting Enter, or see where it is in the Finder by hitting Command+Enter.
如果您像我一样,有时您可能不记得将文档放在何处或文件名是什么。 在这种情况下,键入您知道在文档中的短语会有所帮助。 您可以通过按Enter键来打开文档,或通过按Command + Enter键来查看它在Finder中的位置。
If you want to get fancy, you can also use basic boolean queries, including OR, AND, and NOT. It’s usually not necessary, but good to have sometimes.
如果想花哨的话,还可以使用基本的布尔查询,包括OR,AND和NOT。 通常没有必要,但有时会很好。
使用自然语言搜索文件 (Searching for Files With Natural Language)
Spotlight is useful enough for simple searches alone, but you can go deeper by using natural language. What does this mean? That you can type surprisingly specific queries and get the results you’d expect. For example: type “pictures from december 2015” and you will see only photos from that specific month.
仅在进行简单搜索时,Spotlight就足够了,但您可以使用自然语言来深入了解。 这是什么意思? 您可以输入令人惊讶的特定查询,并获得期望的结果。 例如:输入“ 2015年12月的图片”,您将只能看到该特定月份的照片。
You can use similar language to find documents from last week, videos from last Tuesday, or applications installed in March.
您可以使用类似的语言查找上周的文档,上周二的视频或三月份安装的应用程序。
We’ve talked a lot more about how to use natural language searches in Spotlight, so check that article out for more depth: there’s a lot to figure out here.
我们已经讨论了更多有关如何在Spotlight中使用自然语言搜索的内容 ,因此请查看该文章以获取更多信息:这里有很多要弄清楚的地方。
将其带到查找器 (Take It to the Finder)
As we said before: you can see any search result in the Finder by pressing Command+Enter while it’s highlighted. But it’s also possible to bring your searches to the Finder, where there’s a much more nuanced set of controls. To do this, scroll down to the bottom of your results, then click “Show all in Finder.”
如我们之前所说:在高亮显示的同时按Command + Enter可以在Finder中看到任何搜索结果。 但是也可以将搜索带到Finder,那里有更多细微的控件集。 为此,请向下滚动到结果底部,然后单击“在Finder中显示全部”。
If you’d rather not scroll down to the bottom of the list, you can use the keyboard shortcut Option+Command+Space instead—this will launch the Finder instantly.
如果您不想向下滚动到列表的底部,可以改用键盘快捷键Option + Command + Space,这将立即启动Finder。
From here you can browse through all of the results, or you can further refine things by clicking the “+” button at top-right. This will allow you to add additional queries.
在这里,您可以浏览所有结果,也可以通过单击右上角的“ +”按钮进一步优化结果。 这将允许您添加其他查询。
If you use a search like this often, you can even hit the “Save” button at top-right to add it to your Finder sidebar. That way you can see the results anytime.
如果您经常使用这种搜索,甚至可以点击右上角的“保存”按钮将其添加到Finder侧边栏中。 这样,您可以随时查看结果。
聚焦互联网技巧 (Spotlight Internet Tricks)
So far we’ve focused on Spotlight’s local capabilities, but it also offers a lot of Internet content. For example, if you want the weather, just type “Weather.”
到目前为止,我们专注于Spotlight的本地功能,但它也提供了许多Internet内容。 例如,如果您想要天气,只需键入“天气”。
Or, if you prefer, you can also request the weather in a particular place by typing, for example, “weather in buffalo NY.”
或者,如果您愿意,也可以通过键入例如“纽约州水牛城的天气”来请求特定位置的天气。
The trick also works for sports scores. Type “NHL scores” and you’ll see a schedule for today and a few recent scores.
这个技巧也适用于体育比赛。 输入“ NHL分数”,您会看到今天的时间表和一些最近的分数。
There are a few more tricks like this. For example, type “define” followed by any word to see a quick definition from the web.
还有更多这样的技巧。 例如,键入“ define”,然后输入任何单词,以查看网络上的快速定义。
You can also use Spotlight as a quick calculator.
您也可以将Spotlight用作快速计算器。
There are a few more features hidden here: stock prices, currency conversion, online videos, even results from Maps if you’re looking for the location of a nearby business. It’s not quite as feature complete as Siri in macOS, but it’s got a lot of the same features, so give it a shot. Apple seems to add new features with every release.
如果您要寻找附近商家的位置,这里还隐藏了其他一些功能:股票价格,货币换算,在线视频,甚至包括来自Google地图的结果。 它不像macOS中的Siri那样完整,但是它具有很多相同的功能,因此请尝试一下。 苹果似乎在每个版本中都添加了新功能。
自定义Spotlight内容和顺序 (Customize Spotlight Content and Order)
Maybe you’re not a huge fan of these Internet results, or any particular category of results. No problem: just open up the System Preferences, then head to the Spotlight section. From here you can disable any category of results
也许您不是这些Internet结果或任何特定类别的结果的忠实拥护者。 没问题:只需打开“系统偏好设置”,然后转到“聚光灯”部分。 在这里,您可以禁用任何类别的结果
If you installed Xcode at some point, your results might have all kinds of system files that aren’t really useful to you. We’ve explained how to disable those developer results, and it might be a touch more complicated than you’d like if you deleted XCode.
如果您在某个时候安装了Xcode,则结果可能包含对您没有真正用处的所有系统文件。 我们已经解释了如何禁用这些开发人员结果 ,这可能比您删除XCode要复杂得多。
You can also disable specific folders from coming up in search queries, by heading to the “Privacy” tab.
您还可以通过转到“隐私”标签来禁止特定文件夹出现在搜索查询中。
This can be a good way to keep any collections you might have private from other users of your computer, or to keep things like ebooks from cluttering up results. I find that long books tend to dominate results, because they contain just about every common word.
这可能是一种使您可能对计算机的其他用户拥有的任何藏书不公开的好方法,或者使诸如电子书之类的内容不致混乱。 我发现长书往往在结果中占主导地位,因为它们几乎包含每个常用词。
Spotlight键盘快捷键的完整列表 (A Complete List of Spotlight Keyboard Shortcuts)
To really get the most out of Spotlight, you should really learn all of its keyboard shortcuts. It makes browsing search results a lot easier. Happily, there’s an official list of Spotlight keyboard shortcuts on the Apple website; here’s a quick summary.
为了真正充分利用Spotlight,您应该真正了解其所有键盘快捷键。 它使浏览搜索结果更加容易。 幸运的是,Apple网站上有Spotlight键盘快捷键的官方列表 ; 这是一个简短的摘要。
-
Command+Space will launch Spotlight
Command + Space将启动Spotlight
-
The Right Arrow will complete the search using the currently selected result, turning your query into the full name of that item.
右箭头将使用当前选定的结果完成搜索,将您的查询变成该项目的全名。
-
The Up and Down Arrows let you browse through the list.
向上和向下箭头可让您浏览列表。
-
Command Up and Command Down let you jump between categories of results.
Command Up和Command Down可让您在结果类别之间跳转。
-
Enter allows you to open the currently selected result.
Enter使您可以打开当前选定的结果。
-
Command+R or Command+Enter will show you the current result in the Finder.
Command + R或Command + Enter将在Finder中显示当前结果。
-
Option+Command+Space will open the current search in the Finder, so you can drill down with more tools.
Option + Command + Space将在Finder中打开当前搜索,因此您可以使用更多工具进行深入研究。
-
Command+L will jump to the definition for any search term.
Command + L将跳到任何搜索词的定义。
-
Command+B will look up your search term using the default search engine in your default browser.
Command + B将在默认浏览器中使用默认搜索引擎查找您的搜索词。
-
Command+I will open the “Get Info” window for the result.
Command + I将打开结果的“获取信息”窗口。
-
Command+C will copy the result, just like it would in the Finder.
Command + C将复制结果,就像在Finder中一样。
That’s most of what we could find. We hope some of this makes Spotlight more useful for you, and that you won’t hesitate to get in touch with any other tips.
那就是我们所能找到的大部分。 我们希望其中一些使Spotlight对您更有用,并且您会毫不犹豫地与其他任何提示取得联系。
翻译自: https://www.howtogeek.com/200660/learn-how-to-use-os-x’s-spotlight-search-like-a-champ/
macos使用sshfs