Blob Blame History Raw
From 1ed5251d8abdb9beb2c599075c611791455d9060 Mon Sep 17 00:00:00 2001
From: "Ankur Sinha (Ankur Sinha Gmail)" <sanjay.ankur@gmail.com>
Date: Tue, 9 Jan 2024 11:38:01 +0000
Subject: [PATCH] fix: revert completion using dom

Seems to break tag completion.

https://github.com/GothenburgBitFactory/timewarrior/issues/581

Signed-off-by: Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur@gmail.com>
---
 completion/timew-completion.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/completion/timew-completion.bash b/completion/timew-completion.bash
index 160a3dd3..8200d56c 100644
--- a/completion/timew-completion.bash
+++ b/completion/timew-completion.bash
@@ -42,7 +42,7 @@ function __get_ids()
 
 function __get_tags()
 {
-  timew get dom.tracked.tags "${TIMEW_COMPLETION_TAGS_RANGE:-":all"}"
+  timew tags | tail -n +4 -- | sed -E "s;(.*)[[:space:]]+-($|%.*);\1;"
 }
 
 function __get_extensions()
-- 
2.43.0