From a4623c9e4ae9f44a96274a0f0019a6974c1ff623 Mon Sep 17 00:00:00 2001 From: neingeist Date: Tue, 28 Feb 2023 02:38:25 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20XXX:=20handle=20XXXs=20better,=20al?= =?UTF-8?q?low=20for=20excludes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- XXX | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/XXX b/XXX index b5b11ac..30b7913 100755 --- a/XXX +++ b/XXX @@ -1,3 +1,8 @@ #!/bin/sh # List XXXs, FIXMEs and TODOs in files -ag '^(?!.*mktemp).*XXX|FIXME|TODO' "$@" +# +# This uses ripgrep, and you may supply globs, e.g. to ignore files like this: +# +# XXX .vimrc .vim --glob '!.vim/bundle/**' +# +rg --pcre2 '^(?!.*mktemp).*\KXXX|FIXME|TODO' "$@"