[PATCH 2/2] completion: complete notmuch insert --folder to maildir folders only
Tomi Ollila
tomi.ollila at iki.fi
Thu Jan 1 04:12:30 PST 2015
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.
>
> d
Tomi
PS: if it weren't inconsistent change, just on '#' would suffice ;)
More information about the notmuch
mailing list