Allow user to set the notmuch config
only set completefunc for current buffer
Merge branch 'master' into respect_vim_settings

* master:
  Add --abook-output option to lookup
  Syntax error in markdown
  Add note about snippet being shell syntax
  Make code snippet more general
  Add docs about how to update notmuch-abook in post-new hook
Use simpler match query

When using fts (full text search) there is a hidden field with the table name
that can be used to match text in any field.  So use that field rather than
doing a union.
Add changename command

So you can easily update the name associated with an email address.
Example usage would be:

    notmuch-abook.py changename someone@example.com 'New full name'
Merge pull request #3 from foobacca/respect_vim_settings

Allow user to set the notmuch config
Merge pull request #6 from foobacca/better_sql

Use simpler match query
Merge pull request #7 from foobacca/change_name

Add changename command
Improve email address parsing

* strip semicolons off both name and address
* single strip call for each
* lower case the email address for consistency

I've also put named variables in for name and address to make the code more
readable.

Finally I got rid of an inner for loop that appeared to yield the same result
repeatedly.  The loop was:

    for w in addr[0].split(" ") + [addr[1]]:
        yield addr

As w wasn't used in the loop, that will just yield the same value each time.
If this was meant to do something else, please say.
Allow duplicate names into database

By making sqlite not throw an error when the name is a duplicate.

Fixes issue #5
Merge pull request #11 from foobacca/clean_email

Improve email address parsing
Merge pull request #12 from foobacca/allow_duplicate_name

Allow duplicate names into database
Fix lookup query

Re-add the * that allows partial word look ups, and also add quotes so
that the multi word look up works.  Without the quotes then 'tom d*'
will match a name with 'tom' in it and an address with 'd' in it.  With
the quotes, '"tom d*"' will only match names that start with the 5
characters 'tom d'.
Merge pull request #13 from foobacca/correct_query_quotes

Fix lookup query
Convert to docopt for commandline parsing

And also do a bit of clean up while I'm at it.
Add docopt as dependency for project.
Merge pull request #14 from foobacca/docopt

Convert to docopt for commandline parsing
add gitignore (of *.pyc)
Re-join some lines

After over-zealous following of PEP8
Refactor lookup_act()

So we have code we can reuse for upcoming export functionality.