junegunn / junegunn/fzf

Allow specifying background colour of the `hl` and `selected-hl`

Open
#4,353 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
83k
Forks
2.9k
Avg merge
17h 8m
Merged PRs (30d)
10

Description

It doesn't seem to be possible to specify background of the highlighted substrings.

This prevents from highlighting content via the change of BG colour instead of the FG.

For example, this isn't doable:

![Image](https://github.com/user-attachments/assets/ff30dc0a-5061-49d3-b716-25ec8baf4409)

Please consider adding `hl-bg` and `selected-hl-bg` highlight groups.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how the existing `hl` and `selected-hl` highlight groups are defined and applied in fzf. Add support for configurable `hl-bg` and `selected-hl-bg` groups, then verify that highlighted substrings can use background colours independently from foreground colours.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.