Back to Spacevim

SpaceVim foldsearch layer

docs/layers/foldsearch.md

2.4.01.1 KB
Original Source

Available Layers >> foldsearch

<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc -->

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.

toml
[[layers]]
    name = "foldsearch"

This layer requires at least one search tool: ag, rg, ack, pt and grep, Choose your favorite one.

Options

  • foldsearch_highlight: a boolean option to enable/disabled highlight. Enabled by default. To disable the highlight:
toml
[[layers]]
    name = "foldsearch"
    foldsearch_highlight = false

Key bindings

Key bindingsDescription
SPC F wfoldsearch input word
SPC F Wfoldsearch cursor word
SPC F pfoldsearch regular expression
SPC F eend foldsearch