mac触控板手势自定程序_将隐藏的手势添加到Mac,以显示任何应用程序的所有Windows...

mac触控板手势自定程序_将隐藏的手势添加到Mac,以显示任何应用程序的所有Windows...

mac触控板手势自定程序

mac触控板手势自定程序_将隐藏的手势添加到Mac,以显示任何应用程序的所有Windows...

Wouldn’t it be cool if you could scroll up on any dock icon to quickly see all its windows, along with recent documents? A single command adds this otherwise hidden feature to your dock.

如果您可以向上滚动任何停靠图标以快速查看其所有窗口以及最近的文档,那会不会很酷? 单个命令可将此原本隐藏的功能添加到扩展坞中。

We’ve shown you how to use your MacBook’s trackpad gestures, including the downward three-finger swipe that shows you all windows open by the current application. It turns out it’s possible to do this for any application, not just the currently open one. You just need to scroll up on the dock icon, like this:

我们已经向您展示了如何使用MacBook的触控板手势 ,包括向下的三指滑动,向您显示了当前应用程序打开的所有窗口。 事实证明,可以对任何应用程序执行此操作,而不仅仅是当前打开的应用程序。 您只需要向上滚动停靠图标,如下所示:

mac触控板手势自定程序_将隐藏的手势添加到Mac,以显示任何应用程序的所有Windows...

Don’t try that right now, though. This feature is crazy useful if you keep a lot of windows open, but for some reason Apple decided to hide it behind an obscure command. Here’s how to enable it.

不过,现在不要尝试。 如果您打开许多窗口,此功能将非常有用,但是由于某些原因,Apple决定将其隐藏在晦涩的命令后面。 启用它的方法如下。

如何在码头上启用向上滚动手势 (How to Enable The Scroll Up Gesture On Your Dock)

Open the Terminal, which you’ll find in Applications > Utilities. Alternatively, you can search Spotlight for “Terminal” to find it.

打开终端,您可以在“应用程序”>“实用程序”中找到该终端。 或者,您可以在Spotlight中搜索“终端”以找到它。

mac触控板手势自定程序_将隐藏的手势添加到Mac,以显示任何应用程序的所有Windows...

Once you’ve got the Terminal open, you need to run these two commands, one after the other:

打开终端后,您需要运行以下两个命令,一个接一个:

defaults write com.apple.dock scroll-to-open -bool true

defaults write com.apple.dock scroll-to-open -bool true

killall Dock

killall Dock

Here’s what that command means:

该命令的含义如下:

  • defaults is a program on your Mac that changes settings

    defaults是Mac上更改设置的程序

  • write tells defaults to make a change

    write告诉defaults进行更改

  • com.apple.dock refers to your dock.

    com.apple.dock是指您的基座。

  • scroll-to-open is the feature you’re enabling, with the words -bool true

    scroll-to-open是您要启用的功能,字样-bool true

  • killall Dock restarts your dock.

    killall Dock重新启动您的Dock。

Run the command and your dock will disappear for a moment. When it comes back, you can start scrolling up on icons. The two-finger gesture on your Mac’s trackpad works, as will the scroll wheel on any mouse.

运行命令,您的基座将消失一会。 回来时,您可以开始向上滚动图标。 Mac触控板上的两指手势可以起作用,任何鼠标上的滚轮也可以起作用。

mac触控板手势自定程序_将隐藏的手势添加到Mac,以显示任何应用程序的所有Windows...

As you can see, all of your open windows are revealed, giving you a quick way to jump to them regardless of which virtual desktop they’re placed on. Below your windows are a few documents recently opened by the application, giving you quick access to those as well.

如您所见,所有打开的窗口都会显示出来,无论您将其放置在哪个虚拟桌面上,都可以快速跳转到它们。 窗口下方是该应用程序最近打开的一些文档,使您也可以快速访问这些文档。

如何禁用码头上的向上滚动手势 (How to Disable the Scroll Up Gesture On Your Dock)

If you want to disable this feature, use the following commands:

如果要禁用此功能,请使用以下命令:

defaults write com.apple.dock scroll-to-open -bool false

defaults write com.apple.dock scroll-to-open -bool false

killall Dock

killall Dock

The command is identical to before, just with the word false instead of true.

该命令与以前相同,只是单词为false而不是true。

My thanks to this awesome list of Mac commands for pointing out this hidden feature, which makes my Mac just a little bit better. I hope it makes yours better too.

我要感谢这份出色的Mac命令列表,指出了此隐藏功能,这使我的Mac稍微好了一点。 我希望它也能使您更好。

翻译自: https://www.howtogeek.com/274280/add-a-hidden-gesture-to-your-mac-that-shows-all-windows-for-any-application/

mac触控板手势自定程序