4.6.3 Search Result Preview

p-search provides a mechanism for customizing the search result preview (i.e. the lines that show you what was matched).

User Option: p-search-default-document-preview-size

The default amount of lines to show in the preview section. This value can be changed on a session basis.

User Option: p-search-default-preview-function

The preview function to use to display a search results preview section. The current built in preview functions are p-search-preview-from-hints-best-section which finds the single contiguous section with the best sore, p-search-preview-from-hints-top-score' which picks individual lines resulting in the top score, and p-search-preview-from-hints-first-n' which just displays the document’s beginning.

There are also commands available to you to change the size of the preview window if you find it too limiting.

+ (p-search-increase-preview-size)

Increase the preview size by one, or the amount provided by the prefix, and redisplay the search results.

- (p-search-decrease-preview-size)

Increase the preview size by one, or the amount provided by the prefix, and redisplay the search results.