Djournal: fix title casing and remove silo prefix
This commit is contained in:
parent
4acc5a8008
commit
63ebc08b3d
|
|
@ -79,15 +79,15 @@ BEGIN {
|
||||||
|
|
||||||
switch($titleformat) {
|
switch($titleformat) {
|
||||||
case full
|
case full
|
||||||
title=`{echo $datefull | awk '{print tolower($0)}'}
|
title=$"datefull
|
||||||
case date
|
case date
|
||||||
title=`{echo $datefull | awk '{print tolower($1 " " $2 " " $3 " " $4)}'}
|
title=`{echo $datefull | awk '{print $1 " " $2 " " $3 " " $4}'}
|
||||||
case day
|
case day
|
||||||
title=`{echo $datefull | awk '{print tolower($1)}'}
|
title=`{echo $datefull | awk '{print $1}'}
|
||||||
case year
|
case year
|
||||||
title=`{echo $datefull | awk '{print $4}'}
|
title=`{echo $datefull | awk '{print $4}'}
|
||||||
case *
|
case *
|
||||||
title=`{echo $datefull | awk '{print tolower($0)}'}
|
title=$"datefull
|
||||||
}
|
}
|
||||||
|
|
||||||
filtertitle=`{echo $datefull | awk '{print tolower($1 " " $2 " " $3 " " $4)}'}
|
filtertitle=`{echo $datefull | awk '{print tolower($1 " " $2 " " $3 " " $4)}'}
|
||||||
|
|
@ -101,10 +101,10 @@ results=`{cat $mnt/index}
|
||||||
# If no results, create new journal entry
|
# If no results, create new journal entry
|
||||||
if(~ $#results 0) {
|
if(~ $#results 0) {
|
||||||
if(! ~ $signature '') {
|
if(! ~ $signature '') {
|
||||||
echo '''journal/:'$"title''' =='^$signature' journal' > $mnt/new
|
echo ''''$"title''' =='^$signature' journal' > $mnt/new
|
||||||
}
|
}
|
||||||
if not {
|
if not {
|
||||||
echo '''journal/:'$"title''' journal' > $mnt/new
|
echo ''''$"title''' journal' > $mnt/new
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if not Denote 'denote:'$results(1)
|
if not Denote 'denote:'$results(1)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue