Re: [PATCH 2/2] completion: complete notmuch insert --folder to maildir folders only

Subject: Re: [PATCH 2/2] completion: complete notmuch insert --folder to maildir folders only

Date: Wed, 31 Dec 2014 21:36:58 +0100

To: Jani Nikula, notmuch@notmuchmail.org

Cc:

From: David Bremner


Jani Nikula <jani@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?

d

Thread: