1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:10:05 +08:00
SpaceVim/docs/layers/foldsearch.md
Hoang Nguyen 1345ee66f5
Fix foldsearch docs (#3500)
* Fix foldsearch docs

* Update layers.md
2020-04-29 12:13:22 +08:00

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