From 228f4448b29ad726794ebf2e2d89199c8ed77024 Mon Sep 17 00:00:00 2001 From: rooyca Date: Tue, 25 Jun 2024 21:44:33 -0500 Subject: [PATCH] update: minimal performance improvement when listing tags --- nb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nb b/nb index 17bbc52bb..dde25805d 100755 --- a/nb +++ b/nb @@ -16981,14 +16981,12 @@ _search() { fi local _grep_arguments=( - "--extended-regexp" + "-P" "-I" "--ignore-case" "--only-matching" - -e '[[:space:]]#[A-Za-z0-9_-]+' - -e '^#[A-Za-z0-9_-]+' + -e '(^|\s)#[A-Za-z0-9_-]+' ) - { local __target_path= for __target_path in "${_target_paths[@]:-}"