fix to identical file and dir prefixes, updated config with max nest and max listing options, added --all parameter to show more than notes

This commit is contained in:
mtekman 2017-09-16 17:41:59 +02:00
commit b092e7fdf1
2 changed files with 167 additions and 74 deletions

View file

@ -3,12 +3,13 @@
_org(){
local state
local f_dirname=~/.config/org_notes.location
local f_dirname=~/.config/org_notes.conf
touch $f_dirname
local f_dir=$(cat $f_dirname)
if [ "$f_dir" = "" ]; then
echo -e "-> No location set in $f_dirname"
local f_dir=$(grep "^location" $f_dirname | sed -r 's|^location\s*=\s*(.*)\s*|\1|' )
if [ "$f_dir" = "" ] || ! [ -d $f_dir ]; then
echo -e "-> No valid location set in $f_dirname"
return -1
fi