New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notmuch: autocompletion of "to/cc/bcc" addresses #629

Closed
anarcat opened this Issue Jun 9, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@anarcat

anarcat commented Jun 9, 2017

Right now when you compose an email in Neomutt, the autocompletion command (TAB) in the To: field yields the list of aliases. Yet the Notmuch feature provides a way more powerful autocompletion system through the notmuch-address command. This is used in the Emacs notmuch client and I use it all the time, it's one of those things that make me go back to Emacs instead of switching back to mutt (along with #628).

I'm not sure how that completion works or how customizable it is, but it would seem to me like a key feature to add.

Thanks!

@anarcat

This comment has been minimized.

Show comment
Hide comment
@anarcat

anarcat Jun 9, 2017

it seems this is already doable, by binding the query_command parameter. this worked for me:

set query_command = "notmuch-address %s"

although the output is trimmed at 25 columns for some odd reason...

by default, <Tab> runs the complete command which looks into aliases. to complete using the query_command, you need to use the ^T shortcut. to reverse the two, use this:

bind editor <Tab> complete-query
bind editor ^T complete

this means this is basically resolved. :) thanks!

anarcat commented Jun 9, 2017

it seems this is already doable, by binding the query_command parameter. this worked for me:

set query_command = "notmuch-address %s"

although the output is trimmed at 25 columns for some odd reason...

by default, <Tab> runs the complete command which looks into aliases. to complete using the query_command, you need to use the ^T shortcut. to reverse the two, use this:

bind editor <Tab> complete-query
bind editor ^T complete

this means this is basically resolved. :) thanks!

@anarcat anarcat closed this Jun 9, 2017

@toogley

This comment has been minimized.

Show comment
Hide comment
@toogley

toogley Jun 9, 2017

Member

although the output is trimmed at 25 columns for some odd reason...

If i recall correctly, you can fix that with:

set query_format="%4c %t %-70.70a %-70.70n %?e?(%e)?"
Member

toogley commented Jun 9, 2017

although the output is trimmed at 25 columns for some odd reason...

If i recall correctly, you can fix that with:

set query_format="%4c %t %-70.70a %-70.70n %?e?(%e)?"
@anarcat

This comment has been minimized.

Show comment
Hide comment
@anarcat

anarcat Jun 9, 2017

anarcat commented Jun 9, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment