add limit for selection lists
This commit is contained in:
parent
51c1246c22
commit
a7d7d6c587
|
@ -25,6 +25,8 @@ EOT
|
|||
#
|
||||
# prompt is displayed when waiting for command
|
||||
prompt |<
|
||||
# maxshow defines the maximum number of cards/lines to be displayed
|
||||
maxshow 15
|
||||
# kanban defines a kanban file, may be given several times
|
||||
# kanban /some/path/to/jobkanban.txt
|
||||
# kanban /another/path/to/privatekanban.md
|
||||
|
@ -82,6 +84,8 @@ getselect(){
|
|||
kbs="`getlines kanban <"$conf"`"
|
||||
currkan="`echo "$kbs" | head -n 1`"
|
||||
prompt=`getlines prompt <"$conf" | head -n 1`
|
||||
maxshow=`getlines maxshow <"$conf" | head -n 1`
|
||||
maxshow=${maxshow:-22}
|
||||
#echo conf=$conf
|
||||
#echo kbs=$kbs
|
||||
#echo currkan=$currkan
|
||||
|
@ -103,7 +107,7 @@ showall(){
|
|||
esac
|
||||
echo
|
||||
echo " $1"
|
||||
cat "$kbs" | getlines "$f" | showselect "$f "
|
||||
cat $kbs | getlines "$f" | showselect "$f " | head -n $maxshow
|
||||
}
|
||||
|
||||
# replace lines (in any kanban) containing some ed pattern
|
||||
|
@ -137,6 +141,7 @@ case $k in
|
|||
CLIKANCONF=$CLIKANCONF
|
||||
configfile=$conf
|
||||
editor=$editor
|
||||
maxshow=$maxshow
|
||||
configfile contents:
|
||||
EOT
|
||||
sed -e 's/^/ /' $conf
|
||||
|
|
Loading…
Reference in New Issue