From patchwork Sat Apr 9 20:22:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 707 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6FD2627BBEA; Sat, 9 Apr 2022 21:23:28 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3B11A27BBE9 for ; Sat, 9 Apr 2022 21:23:28 +0100 (BST) Received: from localhost ([::1]:42520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndHcF-000607-7b for patchwork@mira.cbaines.net; Sat, 09 Apr 2022 16:23:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32888) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndHbt-0005x1-Im for guix-patches@gnu.org; Sat, 09 Apr 2022 16:23:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44839) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndHbq-00012p-Nj for guix-patches@gnu.org; Sat, 09 Apr 2022 16:23:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ndHbq-0002lM-EF for guix-patches@gnu.org; Sat, 09 Apr 2022 16:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54823] [PATCH 0/3] Highlight keywords in search results Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 Apr 2022 20:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54823 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54823@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164953576310575 (code B ref -1); Sat, 09 Apr 2022 20:23:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Apr 2022 20:22:43 +0000 Received: from localhost ([127.0.0.1]:38736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndHbT-0002kR-QT for submit@debbugs.gnu.org; Sat, 09 Apr 2022 16:22:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:57586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndHbS-0002kK-Gv for submit@debbugs.gnu.org; Sat, 09 Apr 2022 16:22:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndHbS-0005V0-Bw for guix-patches@gnu.org; Sat, 09 Apr 2022 16:22:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56228) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndHbS-0000xa-2T; Sat, 09 Apr 2022 16:22:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=HPBICSZzExUkOjI3mvjmmIjQHBdKBRaGpZ6r1+/jhjo=; b=VxGwtL+/MRuHCW O7WIg8hxJbhl34QUJcMbQW/Hu2zF3MFP5xKD5ZH0Sbdnhs+Ku1d2t0JiBdqMWP8ePXVdLyfx/5GVC IqIsNbxyl/tcdxI8bZB1QHtfAEpZfqsjOq0PmVl/JBY3II9jZaH+sZVkwCckbFrfRA2QwY8RIS8UP efbx+hRPaxXDRFHIFEROu4oqkAmz4qhI1OneWE1qj9ccfue57UTTCVXZWMI6FJFMlFGDLnfh6SAVq gDqbaC4uKgg2WYRDOmdhfRSzduusrWF9XTGVMZxCfvNcUtuyxx9QOYSr9EoXseJ5KPn2qO8J6IkoY rSDHq2ucGc07prU8ihow==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:65263 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndHbR-0004kJ-KH; Sat, 09 Apr 2022 16:22:37 -0400 From: Ludovic =?utf-8?q?Court=C3=A8s?= Date: Sat, 9 Apr 2022 22:22:24 +0200 Message-Id: <20220409202224.32040-1-ludo@gnu.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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