1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-25 07:40:06 +08:00
SpaceVim/docs/cn/layers/foldsearch.md

40 lines
971 B
Markdown
Raw Normal View History

2020-04-26 18:49:22 +08:00
---
title: "SpaceVim foldsearch 模块"
description: "这一模块为 SpaceVim 提供了 foldsearch 支持,实现的异步搜索折叠的功能。"
lang: zh
---
# [可用模块](../) >> foldsearch
<!-- vim-markdown-toc GFM -->
- [模块简介](#模块简介)
- [启用模块](#启用模块)
- [快捷键](#快捷键)
<!-- vim-markdown-toc -->
## 模块简介
这一模块为 SpaceVim 提供了 foldsearch 支持,实现的异步搜索折叠的功能。
## 启用模块
可通过在配置文件内加入如下配置来启用该模块:
```toml
[[layers]]
name = "foldsearch"
```
2020-04-27 23:28:19 +08:00
该模块依赖于命令:[ripgrep](https://github.com/BurntSushi/ripgrep)。
2020-04-26 18:49:22 +08:00
## 快捷键
2020-04-27 23:28:19 +08:00
| 快捷键 | 功能描述 |
| --------- | ----------------------------- |
| `SPC F w` | foldsearch input word |
| `SPC F W` | foldsearch cursor word |
2020-04-28 13:24:37 +08:00
| `SPC F p` | foldsearch regular expression |
| `SPC F e` | end foldsearch |