Merge branch 'master' of ssh://hb9kns@167.88.113.62:1010/home/hb9kns/r/clikan.git
This commit is contained in:
commit
f572f66cda
13
clikan.sh
13
clikan.sh
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
# clikan.sh -- CLI Kanban
|
||||
ver='2021-09-09/HB9KNS'
|
||||
ver='2022-07-18/HB9KNS'
|
||||
|
||||
conf="${CLIKANCONF:-$HOME/.clikanconf}"
|
||||
defkanban="$HOME/clikanban.md"
|
||||
|
@ -163,11 +163,11 @@ showall(){
|
|||
if test "$f" = "*"
|
||||
then t=`date +%m-%d`
|
||||
# for "doing", sort filtered cards
|
||||
cat $kbs | grep -e $filtr | getlines "$f" | condsort
|
||||
cat $kbs | grep -i -e "$filtr" | getlines "$f" | condsort
|
||||
# and also display '- ...(MM-DD)...' calendar entries
|
||||
cat $kbs | grep "^[*+-] .*($t)" | sed -e 's/^. //'
|
||||
# for waiting and archive, filter but keep saved card order
|
||||
else cat $kbs | grep -e $filtr | getlines "$f"
|
||||
else cat $kbs | grep -i -e "$filtr" | getlines "$f"
|
||||
# for all cases, select the cards and show the beginning of the list
|
||||
fi | showselect "$f " | head -n $ms
|
||||
}
|
||||
|
@ -225,7 +225,7 @@ command keys:
|
|||
wait N: put card N back to waiting/todo state
|
||||
do N: put card N into doing state
|
||||
note: done/wait/do accept several arguments separated by white space
|
||||
f F: filter cards for grep pattern F (empty='.')
|
||||
f F: filter for grep pattern F (case insensitive, empty='.', use _ for space)
|
||||
p: show planning (time scheduling) for active (doing) cards containing
|
||||
@YYMMDD/U.U target date (YYMMDD) and expected duration (U.U)
|
||||
t: search waiting cards with target date of today or older and put them into doing state
|
||||
|
@ -340,7 +340,8 @@ ec) echo calling "$editor $conf" ...
|
|||
ek) echo calling "$editor $currkan" ...
|
||||
"$editor" "$currkan" ;;
|
||||
f) filtr="${coa1:-.}"
|
||||
echo "filtering for grep pattern '$filtr'" ;;
|
||||
echo "filtering for grep pattern '$filtr' (_ means SPC)"
|
||||
filtr=`echo "$filtr" | sed -e 's/_/ /g'` ;;
|
||||
p) echo "## planning for $planpart% of $tunits $planunit"
|
||||
# generate list, but hidden
|
||||
showall doing >/dev/null
|
||||
|
@ -486,6 +487,8 @@ h) if test "$coa1" = ""
|
|||
$myshell "$com $coa1 $coa2 $coa3 $coar"
|
||||
echo ;;
|
||||
*) showhelp
|
||||
echo '(hit return to continue)'
|
||||
read _
|
||||
showall doing ;;
|
||||
esac
|
||||
showprompt
|
||||
|
|
Loading…
Reference in New Issue