On Thu, 01 Jan 2015, Tomi Ollila <tomi.ollila at iki.fi> wrote: > On Wed, Dec 31 2014, David Bremner <david at tethera.net> wrote: > >> Jani Nikula <jani at nikula.org> writes: >>> + local path=`notmuch config get database.path` >>> + compopt -o nospace >>> + COMPREPLY=( $(compgen -d "$path/${cur##folder:}" | \ >>> + sed "s|^$path/||" | grep -v "\(^\|/\)\(cur\|new\|tmp\)$" >> >> I'm a bit confused here. Why is 'folder:' being stripped? Too much >> copy-pasta? > > compgen -d wants a directory ? > > there seems to be similar strippings done in completion of > notmuch_search_terms.
True, but $cur won't have folder: here. Copy-paste fail. Jani. > >> >> d > > Tomi > > PS: if it weren't inconsistent change, just on '#' would suffice ;)