bug-fork

fork/re-write of bug cli todo manager
git clone https://git.regexghost.com/bug-fork.git
Log | Files | Refs | README | LICENSE

commit b24442fe105e4928d427e43c3359f2b73587f10f
parent 2fa97e2562770f93cc2fb67f4186df58d30d7c26
Author: regexghost <dev@regexghost.com>
Date:   Sun, 31 May 2026 17:52:14 +0100

version bumpm, view fix and fzf exit on no selection

Diffstat:
Mbug.sh | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/bug.sh b/bug.sh @@ -97,7 +97,9 @@ lineToFile () { selectEntry () { file="${1:-${BUG_PROJECT}}" - tail -n +2 "$file" | cut -f 1,4 | fzf -i | cut -f 1 + result="$(tail -n +2 "$file" | cut -f 1,4 | fzf -i | cut -f 1)" + [ "$result" = "" ] && exit + echo "$result" } delLine () { @@ -119,6 +121,7 @@ edit () { view () { id=$(selectEntry) + lineToFile $id output="$(cat /tmp/bug_todo_temp | sed "\ s/^ID:/\\${MAGENTA}\\${BOLD}ID:\\${RESET_COLOUR}/g; \ s/^Priority:/\\${MAGENTA}\\${BOLD}Priority:\\${RESET_COLOUR}/g; \ @@ -153,7 +156,7 @@ restore () { } version () { - echo "bug-fork 0.5 - Simple ToDo cli manager" + echo "bug-fork 0.6 - Simple ToDo cli manager" echo "Copyright (C) 2006 Lluis Batlle i Rossell" echo "With modifications bvy regexghost" echo "License: GPL 2"