# rubick-ui-plugin-mverything

> Mac 上的 Everything

Latest version **0.1.6** (published 2021-12-29) · 0 weekly downloads

## Install

```sh
npm install rubick-ui-plugin-mverything
pnpm add rubick-ui-plugin-mverything
yarn add rubick-ui-plugin-mverything
bun add rubick-ui-plugin-mverything
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2021-12-29 |
| First published | 2021-12-29 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.8 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | lanyuanxiaoyao |
| Maintainers | muwoo.cn |

## Links

- npm: https://www.npmjs.com/package/rubick-ui-plugin-mverything
- Homepage: https://gitee.com/rubick-center/rubick-ui-plugin-mverything/raw/master/README.md
- npm.io page: https://npm.io/package/rubick-ui-plugin-mverything

## Recent versions

- 0.1.6 (latest) — 2021-12-29

## README

# Mverything
rubick 插件, 用于在 macOS 提供与 Windows 中 Everything 插件类似的搜索体验.
插件基于`mdfind`命令, `mdfind`命令基于 Spotlight 构建索引, 所以, 如果禁用了 Spotlight, 那么插件也将无法使用.
插件可以被看做是 Spotlight 文件搜索的一个封装, 直接用 Spotlight 应该是相同的效果, 不过 all in one 总是舒服一点.

另外科普一下, Everything 是基于 NTFS 文件系统的特性实现实时搜索, 在 macOS 上无论如何也是很难达到 Everything 的速度的, 所以插件直接使用了『回合制搜索』(即输入完成后需要按一下回车再开始搜索)而不是『实时搜索』, 反正也做不到干脆放弃.
# 操作
## 关键字
`find`, `查找`

## 基本操作
| 操作 | 功能 |
| --- | --- |
| `Enter(回车)` | 搜索 |
| `Space(空格)` | 预览 |
| `Arrow Right(右方向键)` | 默认方式打开文件 |
| `Mouse Left(鼠标左键双击)` | 默认方式打开文件 |
| `Mouse Right(鼠标右键单击)` | 快捷菜单 |

## 快捷搜索
### 默认
插件自带的快捷搜索有两个: 仅搜索文件夹和仅搜索文件
**仅搜索文件夹**只需要在输入框最前方加上**一个空格**

![](https://s2.ax1x.com/2019/08/10/eOreXj.png)

**仅搜索文件**只需要在输入框最前面加上**两个空格**

![](https://s2.ax1x.com/2019/08/10/eOrK7q.png)

### 自定义
可以在设置中自定义属于自己的快捷搜索, 自定义快捷搜索使用正则表达式对搜索结果的全路径进行匹配, 全路径的意思即包含完整路径和文件名的单行文本, 如`/Users/lanyuanxiaoyao/Library/Mobile Documents/iCloud~QReader~MarginStudy/Documents/Head First Java 第二版.pdf`, 这就是这个PDF文件的全路径, 自定义的快捷搜索将会对这样的文本进行匹配.

下面将使用一个例子来说明.
如果我想要在搜索结果里面过滤出图片文件, 那么可以在自定义快捷搜索里面添加: `pic&png|jpg|jpeg|bmp|svg|webp$`, 其中以`&`作为分隔符, `pic`是快捷搜索时使用的关键字, `\.(png|jpg|jpeg|bmp|svg|webp)$`为执行快捷搜索时使用的正则表达式

![](https://s2.ax1x.com/2019/08/10/eOsgRU.png)

![](https://s2.ax1x.com/2019/08/10/eOs5ZR.png)

添加完成后, 就可以在搜索的时候使用这个快捷搜索了, 如下图所示, 在输入框中输入`pic:icon`, 就会把带有"icon"的图片全部搜索出来了.

![](https://s2.ax1x.com/2019/08/10/eOsId1.png)

*正则表达式的规则不再赘述, 可以自行百度*

### 其他
值得一提的是, 默认的快捷搜索和自定义的快捷搜索是可以组合使用的

## 高级查询
所谓高级查询就是`mdfind`命令自己支持的一些高级查询, 如`mdfind "kMDItemContentType=public.folder"`, 但是平心而论, 这些关键字实在是...一言难尽, 所以这些高级用法大家自己去找吧.

## 预览
目前可以对文本文件, 图片和文件夹进行预览

## 文本
![](https://s2.ax1x.com/2019/08/10/eO6bKe.png)

## 图片
![](https://s2.ax1x.com/2019/08/10/eO6XVA.png)

## 文件夹
![](https://s2.ax1x.com/2019/08/10/eOc9xS.png)

# 截图

![安装界面](https://s2.ax1x.com/2019/08/08/eHPtb9.png)

![主界面](https://s2.ax1x.com/2019/08/10/eOctG6.png)

![搜索界面](https://s2.ax1x.com/2019/08/10/eOc2z8.png)

![设置界面](https://s2.ax1x.com/2019/08/10/eOcWQS.png)

---
_Source: https://npm.io/package/rubick-ui-plugin-mverything · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
