mbox series

[bug#54823,0/3] Highlight keywords in search results

Message ID 20220409202224.32040-1-ludo@gnu.org
Headers show
Series Highlight keywords in search results | expand

Message

Ludovic Courtès April 9, 2022, 8:22 p.m. UTC
Hi!

In the quest for colorful output, one thing I’ve always missed
is keyword highlighting in the search results in ‘guix search’,
‘guix system search’, and ‘guix home search’.

The last patch does that; the first one highlights the ‘name’
and ‘version’ field of the recutils output.

Thoughts?

Ludo’.

Ludovic Courtès (3):
  ui: Highlight important bits in recutils output.
  colors: Add 'colorize-full-matches'.
  ui: Highlight package and service search results.

 guix/colors.scm                | 22 ++++++++++++
 guix/scripts/home.scm          |  1 +
 guix/scripts/package.scm       |  3 +-
 guix/scripts/system/search.scm | 37 +++++++++++++-------
 guix/ui.scm                    | 64 +++++++++++++++++++++++-----------
 5 files changed, 93 insertions(+), 34 deletions(-)


base-commit: 0996d48d0e79a360e0d5583b812cd565f62ca32e

Comments

Ludovic Courtès April 19, 2022, 4:09 p.m. UTC | #1
Pushed!

  5e0c347975 ui: Highlight package and service search results.
  d08e4d52a3 colors: Add 'colorize-full-matches'.
  00dcfb261b ui: Highlight important bits in recutils output.