Re: a python terminal gui?
authorPatrick Totzke <patricktotzke@googlemail.com>
Sat, 21 May 2011 18:50:37 +0000 (19:50 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:18 +0000 (09:38 -0800)
09/7d6774449bbfad09573048c912a2537a8d4e26 [new file with mode: 0644]

diff --git a/09/7d6774449bbfad09573048c912a2537a8d4e26 b/09/7d6774449bbfad09573048c912a2537a8d4e26
new file mode 100644 (file)
index 0000000..27a3412
--- /dev/null
@@ -0,0 +1,168 @@
+Return-Path: <patricktotzke@googlemail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id BE4DA429E25\r
+       for <notmuch@notmuchmail.org>; Sat, 21 May 2011 11:50:47 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id qup1PLzQy4Ee for <notmuch@notmuchmail.org>;\r
+       Sat, 21 May 2011 11:50:46 -0700 (PDT)\r
+Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com\r
+ [74.125.82.45])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ 788D8431FD0   for <notmuch@notmuchmail.org>; Sat, 21 May 2011 11:50:46 -0700\r
+ (PDT)\r
+Received: by wwi36 with SMTP id 36so4097340wwi.2\r
+       for <notmuch@notmuchmail.org>; Sat, 21 May 2011 11:50:45 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=googlemail.com; s=gamma;\r
+       h=domainkey-signature:date:from:to:subject:message-id:references\r
+       :mime-version:content-type:content-disposition:in-reply-to\r
+       :user-agent; bh=JlgFlgo0KVukxAmHnGNGEGcLcKSg09GfC2QmwtF11j8=;\r
+       b=s1RRK8NTRLUNefWr9fKfHjC9/b9C3iT1RpxuNQ/krp0wF0czdekQ/vGw7Hfu//ry9y\r
+       Tk6Y+9hIDoRPC7si/O/Q0izkvulEe83RiZpFuogwBtxoJE4qu+nIfNWcA3Jg0wVL2psu\r
+       3SFXeznwys3a3V35NudN6anectzslscNGKiR4=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;\r
+       h=date:from:to:subject:message-id:references:mime-version\r
+       :content-type:content-disposition:in-reply-to:user-agent;\r
+       b=fty3b022d66XD1zoX4/FtFgd2pc33xLm2JN42YuWRMiUk9qLcZIHpNfB5QAn1cfmjb\r
+       w+ccuuNAAXEDJsUnOJ4VvgE98QtrroiGNRUH2sGOI6yVxcbnQ7/A7OvEAyT8cz+g/6Nc\r
+       nkSpKPxk0sNs7UEoKpBEONOuZHiq8yR+8YFAQ=\r
+Received: by 10.216.240.12 with SMTP id d12mr790317wer.8.1306003843449;\r
+       Sat, 21 May 2011 11:50:43 -0700 (PDT)\r
+Received: from brick (cpc1-sgyl2-0-0-cust47.sgyl.cable.virginmedia.com\r
+       [80.192.18.48])\r
+       by mx.google.com with ESMTPS id k76sm2437092wej.43.2011.05.21.11.50.41\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Sat, 21 May 2011 11:50:42 -0700 (PDT)\r
+Date: Sat, 21 May 2011 19:50:37 +0100\r
+From: Patrick Totzke <patricktotzke@googlemail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: Re: a python terminal gui?\r
+Message-ID: <20110521185037.GA13447@brick>\r
+References: <1305888097-sup-2343@optimusprime>\r
+       <87pqndoww8.fsf@yoom.home.cworth.org>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; micalg=pgp-sha1;\r
+       protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj"\r
+Content-Disposition: inline\r
+In-Reply-To: <87pqndoww8.fsf@yoom.home.cworth.org>\r
+User-Agent: Sup/git\r
+X-Mailman-Approved-At: Sat, 21 May 2011 22:53:56 -0700\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 21 May 2011 18:50:47 -0000\r
+\r
+\r
+--9amGYk9869ThD9tj\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+Hi Again,\r
+sorry if this comes as a repost..\r
+\r
+Excerpts from Carl Worth's message of Fri May 20 23:00:23 +0100 2011:\r
+> > However, as a vim user I feel that the one thing that's truly missing i=\r
+s a=20\r
+> > maintainable, feature-rich commandline GUI.\r
+>=20\r
+> "... that's not implemented in emacs" you mean? ;-)\r
+of course :D\r
+\r
+> It's funny to me that you used the name "notmuch-gui" since I've always\r
+> understood the 'G' in GUI to indicate "graphical", to distinguish from\r
+> non-graphical terminal interfaces like you propose here.\r
+I always intuitively understood "graphical" as anything visual.\r
+But your right, http://en.wikipedia.org/wiki/Graphical_user_interface\r
+suggests that a curses-like interface is not a GUI nor a CLI.\r
+Anyhow, I agree that at some point I'll need a real name.\r
+\r
+> I believe all new code should be doing "import notmuch" rather than\r
+> "import cnotmuch", and if there is any package that installs bindings\r
+> that work as "cnotmuch" we should get those updated right away.\r
+Thanks for the clarification. I assume I'll always get the current\r
+bindings distributed with notmuch itself.\r
+A make target inside notmuch/bindings/python would indeed be helpful.\r
+\r
+> > You can find the code at here: https://github.com/pazz/notmuch-gui=20\r
+> I was a bit surprised to see so many results in my initial view. I'd\r
+> expect a default view to be tag:inbox rather than tag:unread. (I didn't\r
+> realize I had over 100 thousand messages with the unread tag, but\r
+> apparently I do.) Perhaps that's a sup default that I've long since\r
+> forgotten?\r
+Yep, its an artefact of my debugging behaviour. Having the initial\r
+buffer show the inbox makes total sense and is also what sup does.\r
+\r
+>   * The interface blocks for a while when searching for something (like\r
+>     "tag:unread" in my case) that returns a *lot* of results. Are you\r
+>     somehow sucking in all the results immediately rather than just what\r
+>     you need to dill the current screen?\r
+That is surprising! I only fill the screen by iterating over an initial\r
+part of the iterator returned by Query.search_threads()\r
+I do a second query to count the messages by Query.count_messages(),\r
+but I'd guess that this translates to some sort of "SELECT COUNT"\r
+and should also be fast. Maybe there's some copying going on=20\r
+at lower levels?\r
+\r
+>   * I was a bit surprised that 'i' and 'u' kept opening new buffers\r
+>     rather than switching to an existing buffer.\r
+It shouldn't be like this, I agree. I'm just annoyed that sup treats\r
+the inbox view different from other searches, in terms of keybindings.\r
+But nevertheless one could have "I" point to a unique inbox search\r
+buffer.\r
+\r
+>   * The '/' key didn't seem to do anything for me, so I wasn't able to\r
+>     actually do any custom searches.\r
+This is because it really is "\" :P that was a typo in the README.\r
+\r
+> It looks like a fine start to me. Please let me know if there's anything\r
+> I can do to help with this, (in terms of hosting the code or anything\r
+> else).\r
+Thanks, that's helpful. I guess it would make sense to place this under\r
+notmuch/contrib at a later point if it gets usable.\r
+\r
+Ah I have question regarding "toplevel" messages in threads:\r
+How can it be that a mail that is not the one that started a thread\r
+is contained in thread.get_toplevel_messages() ?\r
+The only thing I can think of is that a user somehow forced two threads\r
+to become one. Take this very thread for example. Why do I get\r
+Mueen Nawaz's reply as a toplevel message? does this mean\r
+that messages header has incorrect Reply-to headers set?\r
+\r
+@Mueen Nawaz: It's a good idea to post this on the wiki. Will do.\r
+\r
+Cheers,\r
+/p\r
+\r
+--9amGYk9869ThD9tj\r
+Content-Type: application/pgp-signature; name="signature.asc"\r
+Content-Description: Digital signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iEYEARECAAYFAk3YCX0ACgkQlDQDZ9fWxarsDwCgyfCqWxYCrE766LDk6aP9ss2V\r
+g8kAn0Y3BUMi7zDPqleASIR26CDZ1IFJ\r
+=PjtP\r
+-----END PGP SIGNATURE-----\r
+\r
+--9amGYk9869ThD9tj--\r