From 3b91577d61a309f26a0328d93a053b06cb8fcb69 Mon Sep 17 00:00:00 2001 From: Kivi Kaitaniemi Date: Sat, 6 Jul 2024 18:34:21 +0300 Subject: [PATCH] Change pacman output highlight keyword defaults --- example/source.py | 11 ++++++++--- src/decman/config.py | 7 ++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/example/source.py b/example/source.py index 0343b44..d41b2fc 100644 --- a/example/source.py +++ b/example/source.py @@ -134,12 +134,17 @@ decman.config.quiet_output = False # Decman captures pacman command output, and any line (and adjacent lines) that contains any of # the following keywords (case-insensetive) will be printed after the pacman command finishes. +# +# REMEMBER: You should still generally pay attention to pacman output +# since these keywords may not catch all cases. decman.config.pacman_output_keywords = [ - "warning", - "error", - "note", "pacsave", "pacnew", + # Additional keywords can be: + #"warning", + #"error", + #"note", + # They might cause too many highlights however. ] # If you don't want to print lines that contain keywords, set this to False decman.config.print_pacman_output_highlights = True diff --git a/src/decman/config.py b/src/decman/config.py index a3dca6a..f696f2c 100644 --- a/src/decman/config.py +++ b/src/decman/config.py @@ -200,11 +200,12 @@ valid_pkgexts: list[str] = [ ] pacman_output_keywords: list[str] = [ - "warning", - "error", - "note", "pacsave", "pacnew", + # These cause too many false positives IMO + #"warning", + #"error", + #"note", ] print_pacman_output_highlights: bool = True