Closed andrewsardone closed 13 years ago
Also, note that, currently, if the trailing slash is omitted from NOTESDIR
, searching for a question's answer won't return anything – the mdfind
is restricted to NOTESDIR
and answers are being saved one directory up.
I've fixed this with:
NOTESDIR=`echo $NOTESDIR|sed -e '/\/$/! s/$/\//'`
after the config section. That will force a trailing slash if omitted, but won't break it if you do use one in the config settings.
If the trailing slash is omitted from the
NOTESDIR
declaration, QuickQuestion behaves a little unexpectedly. A note is written one directory up from where you expect, with the lastNOTESDIR
component included in the prefix.For example, before the change:
After the change:
If
NOTESDIR
itself includes a trailing slash, everything still works as before.Admittedly this is for saving the user from himself.