It is possible to enable color output of the command line tools:
fzf/args controls fzf color output. By default it disables it with --color bw
fzf/grep-command, set to use ripgrep (its second choice menu entry), selects a default command line with --color never
Both of the above disable color output. To enable color output, simply customize these user-options and remove the respective command line switches.
Problem: However, when doing so with Emacs running inside a terminal session that displays colors using ANSI code sequences, the file name and line number extraction often fail because the ANSI codes are not filtered out.
It is possible to enable color output of the command line tools:
fzf/args
controls fzf color output. By default it disables it with--color bw
fzf/grep-command
, set to use ripgrep (its second choice menu entry), selects a default command line with--color never
Both of the above disable color output. To enable color output, simply customize these user-options and remove the respective command line switches.
Problem: However, when doing so with Emacs running inside a terminal session that displays colors using ANSI code sequences, the file name and line number extraction often fail because the ANSI codes are not filtered out.