Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8B806431FD0 for ; Fri, 20 May 2011 15:00:33 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.01 X-Spam-Level: X-Spam-Status: No, score=0.01 tagged_above=-999 required=5 tests=[T_MIME_NO_TEXT=0.01] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JyR6UpBnTjvz for ; Fri, 20 May 2011 15:00:32 -0700 (PDT) Received: from arlo.cworth.org (arlo.cworth.org [50.43.72.2]) by olra.theworths.org (Postfix) with ESMTP id B78C2431FB6 for ; Fri, 20 May 2011 15:00:32 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 0B90B29A057; Fri, 20 May 2011 15:00:31 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id EE0E0254183; Fri, 20 May 2011 15:00:30 -0700 (PDT) From: Carl Worth To: Patrick Totzke , notmuch-list Subject: Re: a python terminal gui? In-Reply-To: <1305888097-sup-2343@optimusprime> References: <1305888097-sup-2343@optimusprime> User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu) Date: Fri, 20 May 2011 15:00:23 -0700 Message-ID: <87pqndoww8.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2011 22:00:33 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Fri, 20 May 2011 11:47:41 +0100, Patrick Totzke wrote: > Hi all, Hi Patrick. Welcome to notmuch. > First of all, Thanks to everybody involved in the project. Using notmuch = is > good fun I'm really pleased that you are finding notmuch to be fun and useful. > However, as a vim user I feel that the one thing that's truly missing is = a=20 > maintainable, feature-rich commandline GUI. "... that's not implemented in emacs" you mean? ;-) > I'm aware of existing proposed guis: vala-notmuch, notsomuch, I have also= seen=20 > a minimal non-oop python gui that doesn't use the python bindings and > whose name=20 It's funny to me that you used the name "notmuch-gui" since I've always understood the 'G' in GUI to indicate "graphical", to distinguish from non-graphical terminal interfaces like you propose here. Anyway, I'm quite pleased to see you working on this and I wish you lots of success. > On the other hand, cnotmuch and all other libs I (plan to) use in this = project > were easy_installed without any problems. Is the name "cnotmuch" still current anywhere? Long ago, (perhaps a year ago last April when we incorporated the python bindings into the notmuch repository), we decided that the python bindings should be named "notmuch" rather than "cnotmuch". I notice that notmuch/python/bindings/README does still mention "cnotmuch" in some of the explanatory text. But, significantly, it has "import notmuch" in its code example. (On a similar note, I also notice that this README doesn't provide installation instructions, nor is there anything like a "make install" target for the bindings. So this could probably be integrated more cleanly.) I believe all new code should be doing "import notmuch" rather than "import cnotmuch", and if there is any package that installs bindings that work as "cnotmuch" we should get those updated right away. Incidentally, the python-notmuch Debian package does provide "notmuch" rather than "cnotmuch". > You can find the code at here: https://github.com/pazz/notmuch-gui=20 I've got the code and was able to run it after changing each occurrence of: from cnotmuch.notmuch import ... to: from notmuch import I was a bit surprised to see so many results in my initial view. I'd expect a default view to be tag:inbox rather than tag:unread. (I didn't realize I had over 100 thousand messages with the unread tag, but apparently I do.) Perhaps that's a sup default that I've long since forgotten? Anyway, I was able to get the "i" and "u" keybindings to work at least. Here are a few of my immediate thoughts: * The interface blocks for a while when searching for something (like "tag:unread" in my case) that returns a *lot* of results. Are you somehow sucking in all the results immediately rather than just what you need to dill the current screen? * I was a bit surprised that 'i' and 'u' kept opening new buffers rather than switching to an existing buffer. * The '/' key didn't seem to do anything for me, so I wasn't able to actually do any custom searches. > I consider all of this to be a proof-of-concept, any part of this proposal > is up for discussion. It looks like a fine start to me. Please let me know if there's anything I can do to help with this, (in terms of hosting the code or anything else). =2DCarl --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk3W5HcACgkQ6JDdNq8qSWjJ0QCgh3cHS4CEjf9bkeyJSAEe0O8Z jdwAnR2ugfNKdxex17oc0qy1xY0F0bk8 =XOO1 -----END PGP SIGNATURE----- --=-=-=--