Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / 3a / c2cdaa4800fe2fc0dd32a0f9afb3dc84147536
1 Return-Path: <cworth@cworth.org>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 90F6F431FD0\r
6         for <notmuch@notmuchmail.org>; Tue, 24 May 2011 14:54:48 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.01\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.01 tagged_above=-999 required=5\r
12         tests=[T_MIME_NO_TEXT=0.01] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id URR2jFhbSF6c for <notmuch@notmuchmail.org>;\r
16         Tue, 24 May 2011 14:54:48 -0700 (PDT)\r
17 Received: from arlo.cworth.org (arlo.cworth.org [50.43.72.2])\r
18         by olra.theworths.org (Postfix) with ESMTP id 0A0C1431FB6\r
19         for <notmuch@notmuchmail.org>; Tue, 24 May 2011 14:54:48 -0700 (PDT)\r
20 Received: from yoom.home.cworth.org (localhost [127.0.0.1])\r
21         by arlo.cworth.org (Postfix) with ESMTP id B151329A058;\r
22         Tue, 24 May 2011 14:54:46 -0700 (PDT)\r
23 Received: by yoom.home.cworth.org (Postfix, from userid 1000)\r
24         id A1F2425417E; Tue, 24 May 2011 14:54:46 -0700 (PDT)\r
25 From: Carl Worth <cworth@cworth.org>\r
26 To: Stewart Smith <stewart@flamingspork.com>,\r
27  notmuch <notmuch@notmuchmail.org>\r
28 Subject: Re: Multiple sender identities (composing)\r
29 In-Reply-To: <87vcxb0za4.fsf@flamingspork.com>\r
30 References: <87vcxb0za4.fsf@flamingspork.com>\r
31 User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1\r
32         (i486-pc-linux-gnu)\r
33 Date: Tue, 24 May 2011 14:54:37 -0700\r
34 Message-ID: <87wrhfvk6a.fsf@yoom.home.cworth.org>\r
35 MIME-Version: 1.0\r
36 Content-Type: multipart/signed; boundary="=-=-=";\r
37         micalg=pgp-sha1; protocol="application/pgp-signature"\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Tue, 24 May 2011 21:54:48 -0000\r
51 \r
52 --=-=-=\r
53 \r
54 On Mon, 16 May 2011 19:29:07 +1000, Stewart Smith <stewart@flamingspork.com> wrote:\r
55 > Thought I'd share this bit of my .emacs snippet that may be useful to go\r
56 > on the emacs tips page.\r
57 \r
58 Hi Stewart,\r
59 \r
60 Thanks for sharing this functionality.\r
61 \r
62 I've wanted something like this, but I'm extremely reluctant to put\r
63 fancy things like this in my .emacs file. The problem I have is that I\r
64 don't want to restrict nice features to the people who manage to\r
65 configure their emacs "just so".\r
66 \r
67 I'd much rather have this functionality inside notmuch itself, and\r
68 without requiring any configuration (by default).\r
69 \r
70 I'll reply with a patch I just wrote attempting to implement that. By\r
71 default, it generates the list of addresses by looking in your notmuch\r
72 configuration file. It also provides a customizable list of addresses\r
73 that the user can provide (notmuch-identities).\r
74 \r
75 The patch doesn't make all new composition buffers prompt for the\r
76 address. Instead, the original 'm' key does no prompting as its always\r
77 done. And a new 'M' key prompts.\r
78 \r
79 I did use ido-completing-read rather than completing-read. I did that\r
80 because otherwise it's a pain to complete addresses. For example,\r
81 imagine I have the following:\r
82 \r
83         Carl Worth <cworth@cworth.org>\r
84         Carl Worth <carl.d.worth@intel.com>\r
85         Carl Worth <carl.d.worth@gmail.com>\r
86 \r
87 To select my intel address hit "C [TAB]", "a [TAB]", "i [TAB]" which is\r
88 random enough that I can't memorize it but have to instead slowly watch.\r
89 \r
90 With ido I can just type "intel [ENTER]" which is nice and quick (and I\r
91 can get trained to type less if sufficient.\r
92 \r
93 One thing I don't like about ido is that the input area is extremely\r
94 cluttered from the beginning with all the possible inputs. I wish it\r
95 instead waiting for some explicit keypress (such as pressing ENTER while\r
96 the input is still ambiguous) before displaying possible matches.\r
97 \r
98 I don't know what trouble you had with ido on Ubuntu, but hopefully you\r
99 can work that out.\r
100 \r
101 I did implement support for completion history.\r
102 \r
103 I did not implement support for doing completion when forwarding.\r
104 \r
105 A nice addition would be an easy keybinding for doing the same\r
106 completion to change the From header while composing a message.\r
107 \r
108 Anyway, I'm throwing this out for feedback, testing, and\r
109 suggestions. Please let me know if you try and out and if you think we\r
110 should push this code.\r
111 \r
112 -Carl\r
113 \r
114 --=-=-=\r
115 Content-Type: application/pgp-signature\r
116 \r
117 -----BEGIN PGP SIGNATURE-----\r
118 Version: GnuPG v1.4.11 (GNU/Linux)\r
119 \r
120 iEYEARECAAYFAk3cKR0ACgkQ6JDdNq8qSWi8nQCghqIt1htz+Ov89oZ2yO++Gkf0\r
121 HYkAniMEN3UsTmpDMy56BywpDWfW5Pzx\r
122 =3r6E\r
123 -----END PGP SIGNATURE-----\r
124 --=-=-=--\r