-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
141 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
--- | ||
tags: | ||
- Mac | ||
--- | ||
|
||
# QuickLook | ||
|
||
QuickLook(快速预览)是Mac上最好用的功能之一。 | ||
|
||
比如说你可以快速查看、编辑图片: | ||
|
||
<figure markdown> | ||
|
||
![](https://help.apple.com/assets/6716DCA9E121372173069823/6716DCAAD224F0859301B7BA/en_GB/d40e831955745b154cab7d8b7c3c44e0.png){width=400} | ||
|
||
</figure> | ||
|
||
|
||
然而它还不够好用,很多文件格式都不支持QuickLook。这时我们可以通过扩展插件来支持特定的文件格式。 | ||
|
||
## Markdown文件 | ||
|
||
我最常用的文档格式之一,使用qlmarkdown插件即可预览: | ||
|
||
<figure markdown> | ||
|
||
[![toland/qlmarkdown - GitHub](https://gh-card.dev/repos/toland/qlmarkdown.svg?fullname=)](https://github.com/toland/qlmarkdown) | ||
|
||
</figure> | ||
|
||
安装方法: | ||
```bash | ||
brew install --cask qlmarkdown | ||
``` | ||
|
||
效果: | ||
![](assets/2024-12-08-16-32-08.png) | ||
|
||
> 主题可以自选,我这里选择了GitHub的主题 | ||
## 压缩文件 | ||
Mac上我使用的是[Keka](https://www.keka.io/en/)来压缩、解压缩文件。很好用,但是它不提供对压缩包的预览。qlZipInfo可以解决这个问题: | ||
|
||
<figure markdown> | ||
|
||
[![srirangav/qlZipInfo - GitHub](https://gh-card.dev/repos/srirangav/qlZipInfo.svg?fullname=)](https://github.com/srirangav/qlZipInfo) | ||
|
||
</figure> | ||
|
||
安装方法: | ||
|
||
1. Create the directory ~/Library/QuickLook if it doesn't | ||
exist | ||
|
||
2. Copy qlZipInfo.qlgenerator to ~/Library/QuickLook | ||
|
||
3. Restart QuickLook: | ||
|
||
/usr/bin/qlmanage -r | ||
/usr/bin/qlmanage -r cache | ||
|
||
4. Wait a minute or two for QuickLook to properly load | ||
or reload qlZipInfo.qlgenerator | ||
|
||
效果: | ||
![](assets/2024-12-08-16-36-47.png) | ||
|
||
## 无后缀纯文本文件 | ||
|
||
例如LISCENSE、INSTALL、MAKEFILE等无后缀纯文本文件,可以使用qlstephen来预览: | ||
|
||
<figure markdown> | ||
|
||
[![whomwah/qlstephen - GitHub](https://gh-card.dev/repos/whomwah/qlstephen.svg?fullname=)](https://github.com/whomwah/qlstephen) | ||
|
||
</figure> | ||
|
||
安装方法: | ||
```bash | ||
brew install --cask qlstephen | ||
``` | ||
|
||
效果: | ||
![](assets/2024-12-08-16-39-57.png) | ||
|
||
## 其他 | ||
|
||
暂时我就安装了这三个插件。 | ||
|
||
更多插件可以参考: | ||
|
||
<figure markdown> | ||
|
||
[![haokaiyang/Mac-QuickLook - GitHub](https://gh-card.dev/repos/haokaiyang/Mac-QuickLook.svg?fullname=)](https://github.com/haokaiyang/Mac-QuickLook) | ||
|
||
</figure> | ||
|
||
这个仓库列举了很多QuickLook plugins | ||
|
||
以及: | ||
|
||
[加强你的「一指禅」:Mac QuickLook「快速预览」兼容性扩展教程](https://sspai.com/post/31927) | ||
|
||
这篇文章也介绍了好几个插件。 | ||
|
||
你甚至可以自己写一个简单的插件,我猜想并不复杂。 | ||
|
||
例如支持zip文件预览的小插件: | ||
|
||
<figure markdown> | ||
|
||
[![richie5um/QLZip - GitHub](https://gh-card.dev/repos/richie5um/QLZip.svg?fullname=)](https://github.com/richie5um/QLZip) | ||
|
||
</figure> | ||
|
||
代码量很小。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
tags: | ||
- 电影 | ||
--- | ||
|
||
# 和Summer的五百天 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters