junegunn / junegunn/fzf.vim

Highlight search term in preview window

Open
#1,168 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
10.3k
Forks
608
Avg merge
5d 8h
Merged PRs (30d)
2

Description

- [x] I have fzf 0.23.0 or above
- [x] I have read through https://github.com/junegunn/fzf.vim/blob/master/README.md
- [x] I have read through https://github.com/junegunn/fzf/blob/master/README-VIM.md
- [x] I have read through the manual page of fzf (`man fzf`)
- [x] I have searched through the existing issues

---

Would it be possible to highlight search term inside of the preview window?

![image](https://user-images.githubusercontent.com/300146/98323991-04976500-1fe3-11eb-9276-2b565504e09f.png)

This would make visual navigation easier. I don't quite see how it can be implemented with the current code as search query isn't passed to `preview.sh`.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how the preview window invokes preview.sh and whether the search query is available at that boundary. Determine how the query could reach the preview and what preview output would need to change so matching terms are visibly highlighted.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.