mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 22:30:04 +08:00
1345ee66f5
* Fix foldsearch docs * Update layers.md
1.2 KiB
1.2 KiB
title | description |
---|---|
SpaceVim foldsearch layer | This layer provides functions that fold away lines that don't match a specific search pattern. |
Available Layers >> foldsearch
Intro
This layer provides functions that fold away lines that don't match a specific search pattern. The search pattern can be a word or a regular expression.
Install
To use this layer, add it to your configuration file.
[[layers]]
name = "foldsearch"
This layer requires ripgrep.
Options
- foldsearch_highlight: a boolean option for enable/disabled highlight. Enabled by default. To disable the highlight:
[[layers]]
name = "foldsearch"
foldsearch_highlight = false
Key bindings
Key bindings | Description |
---|---|
SPC F w |
foldsearch input word |
SPC F W |
foldsearch cursor word |
SPC F p |
foldsearch regular expression |
SPC F e |
end foldsearch |