m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-15 14:53:47 -05:00

Allow customizing --ghost color via '--color ghost'

Examples:

  # Dimmed red
  fzf --ghost booya --color ghost:red

  # Regular red
  fzf --ghost booya --color ghost:red:regular

Close #4398
This commit is contained in:
Junegunn Choi
2025-05-28 00:27:33 +09:00
parent a4c6846851
commit ffb6e28ca7
4 changed files with 13 additions and 1 deletions

View File

@@ -2386,7 +2386,7 @@ func (t *Terminal) printPrompt() {
before, after := t.updatePromptOffset()
if len(before) == 0 && len(after) == 0 && len(t.ghost) > 0 {
w.CPrint(tui.ColInput.WithAttr(tui.Dim), t.ghost)
w.CPrint(tui.ColGhost, t.ghost)
return
}