root=$0:h:a
. $root/lib.zsh.rc
-$root/list | fzf -d "\t" --tac --preview="$root/show {2}" | cut -f2 | read d
+$root/list | fzf --ansi -d "\t" --tac --preview="$root/show {2}" | cut -f2 | read d
print issues/$d
root=$0:h:a
. $root/lib.zsh.rc
+[[ -n $NO_COLOR ]] || coloured_git=--color
+
issue=${1#issues/}
hashes=(`git log --format=format:%H issues/$issue/comment`)
for i ({${#hashes}..1}) {
- header=`git show --no-patch --format=format:"When: %ai%nAuthor: %an <%ae>" ${hashes[$i]}`
comment=`git cat-file blob ${hashes[$i]}:issues/$issue/comment | sed "s/^/+ /"`
[[ -n $comment ]] || continue
+ header=`git show $coloured_git --no-patch --format=format:"%CgreenWhen: %ai%Creset%n%CredAuthor: %an <%ae>%Creset%n%CblueComment:%Creset" ${hashes[$i]}`
print $header
- print Comment:
print $comment
[[ $i -eq 1 ]] || print
}
$PERL -npe 's/([^-])-([^-])/$1 $2/g ; s/-(-+)/$1/g'
}
+supercat() { cat ; }
+if [[ -z $NO_COLOR ]] && command -v spc > /dev/null 2> /dev/null ; then
+ supercat() { spc $@ ; }
+fi
+
delim() {
- local i
- for i ({1..40}) print -n -- -
- print
+ {
+ local i
+ for i ({1..40}) print -n -- -
+ print
+ } | supercat -e mag,".*"
}
print -n `cat issues/$issue/created`\\t$issue\\t
print $tagsTheir
-} | sort -r | {
- if [[ -z "$NO_COLOR" ]] && command -v spc > /dev/null 2> /dev/null ; then
- spc -e grn,"^..................." -e cya," [^ ]*$" -e red," .*\/"
- else
- cat
- fi
-}
+} | sort -r |
+supercat -e grn,"^.{19}" -e cya," [^ ]*$" -e red," .*\/"
print Result:
sed "s/^/+ /" < issues/$issue/result
print Comments:
-$root/comment-list $issue | sed "s/^/+ /"
+NO_COLOR=1 $root/comment-list $issue | sed "s/^/+ /"
root=$0:h:a
. $root/lib.zsh.rc
-$root/list | while read line ; do
+NO_COLOR=1 $root/list | while read line ; do
line=(${=line})
issue=${line[3]}
$root/recfile-export $issue
. $root/lib.zsh.rc
issue=${1#issues/}
-print `cat issues/$issue/created` \| $issue:h \| `print $issue:t | dedash`
-$root/tag-list $issue
+print $issue:h | supercat -e red,".*" | read proj
+print `cat issues/$issue/created` \| $proj/`print $issue:t | dedash`
+$root/tag-list $issue | supercat -e cya,".*"
deps=(issues/$issue/deps/*(N))
[[ ${#deps} -eq 0 ]] || {
delim