From: Patrick Totzke Date: Mon, 15 Apr 2013 18:46:45 +0000 (+0100) Subject: Re: Xapers X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0ecd267cb38db2e820ae497bb2dc12aa707f6d56;p=notmuch-archives.git Re: Xapers --- diff --git a/85/bc7c061991a2c7290a831de91b099427bb4a1f b/85/bc7c061991a2c7290a831de91b099427bb4a1f new file mode 100644 index 000000000..c49cc48a8 --- /dev/null +++ b/85/bc7c061991a2c7290a831de91b099427bb4a1f @@ -0,0 +1,204 @@ +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 4E79E431FB6 + for ; Mon, 15 Apr 2013 11:46:52 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.799 +X-Spam-Level: +X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 dPHKQVa-CXYr for ; + Mon, 15 Apr 2013 11:46:51 -0700 (PDT) +Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com + [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client + certificate requested) by olra.theworths.org (Postfix) with ESMTPS id + BD052431FAF for ; Mon, 15 Apr 2013 11:46:50 -0700 + (PDT) +Received: by mail-wg0-f45.google.com with SMTP id l18so5079856wgh.12 + for ; Mon, 15 Apr 2013 11:46:49 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=x-received:content-type:mime-version:content-disposition:from + :user-agent:to:references:in-reply-to:message-id:subject:date; + bh=iOElbMBHCZJMtV2w7blWVrBnNzqL3GlWreCA97oXxik=; + b=GzDNt2/dlB9FXfEeWNWer8igSdJ7n/eWvB1uBS1YCii0TpQtwW0ksLVs5Vttx/bLgd + 4MlKjlRuD0Wd94rcBDJnMxp4MbZ7WkSiMKPmcHud01lx3zyVGCHUqsdhgsW2rFhdr7gS + 9yVorq6GCtEbILvwBDcq/WJFeO7M7pzJjpd5VbLyXmiw0sf3erJol4MWU+d8LqTQ9GJN + v69tM/beU9YfTHcO71TkPRkEzbeVodhF2BTEKC0mpKSmxxrgGx1QHCFrlEEJI8gTwr0j + RvKrGZnvAKuOGHxIQT4BcwlK+MIQNufrTVzjqcevk4N+uXAKKMQPXalf2P8ZqVaymm7c + OvYA== +X-Received: by 10.194.23.105 with SMTP id l9mr34439411wjf.41.1366051608334; + Mon, 15 Apr 2013 11:46:48 -0700 (PDT) +Received: from localhost (cpc14-sgyl28-2-0-cust332.18-2.cable.virginmedia.com. + [82.39.85.77]) + by mx.google.com with ESMTPS id t14sm3987167wib.0.2013.04.15.11.46.46 + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Mon, 15 Apr 2013 11:46:47 -0700 (PDT) +Content-Type: multipart/signed; protocol="application/pgp-signature"; + micalg="pgp-sha1"; boundary="===============5362472888460847348==" +MIME-Version: 1.0 +Content-Disposition: inline +From: Patrick Totzke +User-Agent: alot/0.3.4 +To: Jameson Graef Rollins , + "Notmuch Mail" +References: <87zjx0tdwt.fsf@servo.finestructure.net> + <87li8ju307.fsf@servo.finestructure.net> +In-Reply-To: <87li8ju307.fsf@servo.finestructure.net> +Message-ID: <20130415184645.698.61822@brick.lan> +Subject: Re: Xapers +Date: Mon, 15 Apr 2013 19:46:45 +0100 +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: Mon, 15 Apr 2013 18:46:52 -0000 + +--===============5362472888460847348== +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: quoted-printable + +Quoting Jameson Graef Rollins (2013-04-15 18:18:00) +> On Mon, Apr 15 2013, Jameson Graef Rollins w= +rote: +> > README and a screenshot of the curses ui here: +> > +> > http://finestructure.net/xapers/README +> > http://finestructure.net/xapers/screenshot.png +> = + +> I maybe should have been a little clearer that all necessary +> instructions should be in the README, including the source repo: +> = + +> git://finestructure.net/xapers + + +Brilliant idea! + +here's some early feedback: +* is there a way to batch import a bunch of pdfs? or better yet, a bibtex f= +ile with entries pointing + to files like the ones produced by say jabref? + There, entries have some line like this: + file =3D {Boz2012.pdf:papers/Boz2012.pdf:PDF} + +* got a bunch of traces: + ----------------------------- + $xapers import --source=3DABK2011.pdf = + 1 =E2=86=B5 master = + + Reading bibtex... done. + Adding bibtex... = + + = + + Traceback (most recent call last): + File "/home/pazz/.local/bin/xapers", line 145, in + docid =3D cli.add(query_string, infile=3Dinfile, source=3Dsource, tag= +s=3Dtags, prompt=3Dprompt) + File "/home/pazz/.local/lib/python2.7/site-packages/xapers/cli/ui.py", = +line 228, in add + doc.add_bibtex(bibtex) + File "/home/pazz/.local/lib/python2.7/site-packages/xapers/documents.py= +", line 373, in add_bibtex + self.bibentry =3D xapers.bibtex.Bibentry(bibtex) + File "/home/pazz/.local/lib/python2.7/site-packages/xapers/bibtex.py", = +line 25, in __init__ + if os.path.exists(bibtex): + File "/usr/lib/python2.7/genericpath.py", line 18, in exists + os.stat(path) + TypeError: must be encoded string without NULL bytes, not str + ---------------------------- + = + + $ xapers show, then i moved around a bit + + ---------------------------- + Traceback (most recent call last): + File "/home/pazz/.local/bin/xapers", line 228, in + xapers.nci.UI(xroot, cmd=3Dargs) + File "/home/pazz/.local/lib/python2.7/site-packages/xapers/nci/ui.py", = +line 73, in __init__ + self.mainloop.run() + File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2= +.7-linux-x86_64.egg/urwid/main_loop.py", line 272, in run + self.screen.run_wrapper(self._run) + File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2= +.7-linux-x86_64.egg/urwid/raw_display.py", line 242, in run_wrapper + return fn() + File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2= +.7-linux-x86_64.egg/urwid/main_loop.py", line 337, in _run + self.event_loop.run() + File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2= +.7-linux-x86_64.egg/urwid/main_loop.py", line 708, in run + self._loop() + File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2= +.7-linux-x86_64.egg/urwid/main_loop.py", line 787, in _loop + self._watch_files[fd]() + File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2= +.7-linux-x86_64.egg/urwid/main_loop.py", line 388, in _update + self.process_input(keys) + File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2= +.7-linux-x86_64.egg/urwid/main_loop.py", line 488, in process_input + k =3D self._topmost_widget.keypress(self.screen_size, k) + File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2= +.7-linux-x86_64.egg/urwid/container.py", line 1120, in keypress + return self.body.keypress( (maxcol, remaining), key ) + File "/home/pazz/.local/lib/python2.7/site-packages/xapers/nci/search.p= +y", line 304, in keypress + eval(cmd) + File "", line 1, in + File "/home/pazz/.local/lib/python2.7/site-packages/xapers/nci/search.p= +y", line 155, in nextEntry + self.listbox.set_focus(pos + 1) + File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2= +.7-linux-x86_64.egg/urwid/listbox.py", line 567, in set_focus + self.body.set_focus(position) + File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2= +.7-linux-x86_64.egg/urwid/listbox.py", line 178, in set_focus + raise IndexError, "No widget at position %s" % (position,) + IndexError: No widget at position 1 + ---------------------------- + + +* did you already set something up to report bugs? github issues, a maling = +list? + +Can't wait until someone forks alot to use this. I've been waiting for some= +one (else) +to start a project like this for some time now :) + +rock on, +/p + + +--===============5362472888460847348== +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +Content-Description: signature +Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii" + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.11 (GNU/Linux) + +iEYEABECAAYFAlFsSxUACgkQlDQDZ9fWxaoRsgCbB6Xj1P05hJsch71+5jC1BBdr +Ko8AniviyvGPECY3FACqnAfiW4xc5PQT +=eXpE +-----END PGP SIGNATURE----- + +--===============5362472888460847348==--