Re: Xapers
[notmuch-archives.git] / 85 / bc7c061991a2c7290a831de91b099427bb4a1f
1 Return-Path: <patricktotzke@gmail.com>\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 4E79E431FB6\r
6         for <notmuch@notmuchmail.org>; Mon, 15 Apr 2013 11:46:52 -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.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id dPHKQVa-CXYr for <notmuch@notmuchmail.org>;\r
17         Mon, 15 Apr 2013 11:46:51 -0700 (PDT)\r
18 Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com\r
19  [74.125.82.45])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
20  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
21  BD052431FAF    for <notmuch@notmuchmail.org>; Mon, 15 Apr 2013 11:46:50 -0700\r
22  (PDT)\r
23 Received: by mail-wg0-f45.google.com with SMTP id l18so5079856wgh.12\r
24         for <notmuch@notmuchmail.org>; Mon, 15 Apr 2013 11:46:49 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26         h=x-received:content-type:mime-version:content-disposition:from\r
27         :user-agent:to:references:in-reply-to:message-id:subject:date;\r
28         bh=iOElbMBHCZJMtV2w7blWVrBnNzqL3GlWreCA97oXxik=;\r
29         b=GzDNt2/dlB9FXfEeWNWer8igSdJ7n/eWvB1uBS1YCii0TpQtwW0ksLVs5Vttx/bLgd\r
30         4MlKjlRuD0Wd94rcBDJnMxp4MbZ7WkSiMKPmcHud01lx3zyVGCHUqsdhgsW2rFhdr7gS\r
31         9yVorq6GCtEbILvwBDcq/WJFeO7M7pzJjpd5VbLyXmiw0sf3erJol4MWU+d8LqTQ9GJN\r
32         v69tM/beU9YfTHcO71TkPRkEzbeVodhF2BTEKC0mpKSmxxrgGx1QHCFrlEEJI8gTwr0j\r
33         RvKrGZnvAKuOGHxIQT4BcwlK+MIQNufrTVzjqcevk4N+uXAKKMQPXalf2P8ZqVaymm7c\r
34         OvYA==\r
35 X-Received: by 10.194.23.105 with SMTP id l9mr34439411wjf.41.1366051608334;\r
36         Mon, 15 Apr 2013 11:46:48 -0700 (PDT)\r
37 Received: from localhost (cpc14-sgyl28-2-0-cust332.18-2.cable.virginmedia.com.\r
38         [82.39.85.77])\r
39         by mx.google.com with ESMTPS id t14sm3987167wib.0.2013.04.15.11.46.46\r
40         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
41         Mon, 15 Apr 2013 11:46:47 -0700 (PDT)\r
42 Content-Type: multipart/signed; protocol="application/pgp-signature";\r
43         micalg="pgp-sha1"; boundary="===============5362472888460847348=="\r
44 MIME-Version: 1.0\r
45 Content-Disposition: inline\r
46 From: Patrick Totzke <patricktotzke@gmail.com>\r
47 User-Agent: alot/0.3.4\r
48 To: Jameson Graef Rollins <jrollins@finestructure.net>,\r
49         "Notmuch Mail" <notmuch@notmuchmail.org>\r
50 References: <87zjx0tdwt.fsf@servo.finestructure.net>\r
51         <87li8ju307.fsf@servo.finestructure.net>\r
52 In-Reply-To: <87li8ju307.fsf@servo.finestructure.net>\r
53 Message-ID: <20130415184645.698.61822@brick.lan>\r
54 Subject: Re: Xapers\r
55 Date: Mon, 15 Apr 2013 19:46:45 +0100\r
56 X-BeenThere: notmuch@notmuchmail.org\r
57 X-Mailman-Version: 2.1.13\r
58 Precedence: list\r
59 List-Id: "Use and development of the notmuch mail system."\r
60         <notmuch.notmuchmail.org>\r
61 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
63 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
64 List-Post: <mailto:notmuch@notmuchmail.org>\r
65 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
66 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
67         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
68 X-List-Received-Date: Mon, 15 Apr 2013 18:46:52 -0000\r
69 \r
70 --===============5362472888460847348==\r
71 Content-Type: text/plain; charset="utf-8"\r
72 MIME-Version: 1.0\r
73 Content-Transfer-Encoding: quoted-printable\r
74 \r
75 Quoting Jameson Graef Rollins (2013-04-15 18:18:00)\r
76 > On Mon, Apr 15 2013, Jameson Graef Rollins <jrollins@finestructure.net> w=\r
77 rote:\r
78 > > README and a screenshot of the curses ui here:\r
79 > >\r
80 > > http://finestructure.net/xapers/README\r
81 > > http://finestructure.net/xapers/screenshot.png\r
82 > =\r
83 \r
84 > I maybe should have been a little clearer that all necessary\r
85 > instructions should be in the README, including the source repo:\r
86 > =\r
87 \r
88 >   git://finestructure.net/xapers\r
89 \r
90 \r
91 Brilliant idea!\r
92 \r
93 here's some early feedback:\r
94 * is there a way to batch import a bunch of pdfs? or better yet, a bibtex f=\r
95 ile with entries pointing\r
96   to files like the ones produced by say jabref?\r
97   There, entries have some line like this:\r
98   file =3D {Boz2012.pdf:papers/Boz2012.pdf:PDF}\r
99 \r
100 * got a bunch of traces:\r
101   -----------------------------\r
102   $xapers import --source=3DABK2011.pdf                                    =\r
103                                                  1 =E2=86=B5 master =\r
104 \r
105   Reading bibtex... done.\r
106   Adding bibtex... =\r
107 \r
108   =\r
109 \r
110   Traceback (most recent call last):\r
111     File "/home/pazz/.local/bin/xapers", line 145, in <module>\r
112       docid =3D cli.add(query_string, infile=3Dinfile, source=3Dsource, tag=\r
113 s=3Dtags, prompt=3Dprompt)\r
114     File "/home/pazz/.local/lib/python2.7/site-packages/xapers/cli/ui.py", =\r
115 line 228, in add\r
116       doc.add_bibtex(bibtex)\r
117     File "/home/pazz/.local/lib/python2.7/site-packages/xapers/documents.py=\r
118 ", line 373, in add_bibtex\r
119       self.bibentry =3D xapers.bibtex.Bibentry(bibtex)\r
120     File "/home/pazz/.local/lib/python2.7/site-packages/xapers/bibtex.py", =\r
121 line 25, in __init__\r
122       if os.path.exists(bibtex):\r
123     File "/usr/lib/python2.7/genericpath.py", line 18, in exists\r
124       os.stat(path)\r
125   TypeError: must be encoded string without NULL bytes, not str\r
126   ----------------------------\r
127   =\r
128 \r
129   $ xapers show, then i moved around a bit\r
130 \r
131   ----------------------------\r
132   Traceback (most recent call last):\r
133     File "/home/pazz/.local/bin/xapers", line 228, in <module>\r
134       xapers.nci.UI(xroot, cmd=3Dargs)\r
135     File "/home/pazz/.local/lib/python2.7/site-packages/xapers/nci/ui.py", =\r
136 line 73, in __init__\r
137       self.mainloop.run()\r
138     File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2=\r
139 .7-linux-x86_64.egg/urwid/main_loop.py", line 272, in run\r
140       self.screen.run_wrapper(self._run)\r
141     File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2=\r
142 .7-linux-x86_64.egg/urwid/raw_display.py", line 242, in run_wrapper\r
143       return fn()\r
144     File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2=\r
145 .7-linux-x86_64.egg/urwid/main_loop.py", line 337, in _run\r
146       self.event_loop.run()\r
147     File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2=\r
148 .7-linux-x86_64.egg/urwid/main_loop.py", line 708, in run\r
149       self._loop()\r
150     File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2=\r
151 .7-linux-x86_64.egg/urwid/main_loop.py", line 787, in _loop\r
152       self._watch_files[fd]()\r
153     File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2=\r
154 .7-linux-x86_64.egg/urwid/main_loop.py", line 388, in _update\r
155       self.process_input(keys)\r
156     File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2=\r
157 .7-linux-x86_64.egg/urwid/main_loop.py", line 488, in process_input\r
158       k =3D self._topmost_widget.keypress(self.screen_size, k)\r
159     File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2=\r
160 .7-linux-x86_64.egg/urwid/container.py", line 1120, in keypress\r
161       return self.body.keypress( (maxcol, remaining), key )\r
162     File "/home/pazz/.local/lib/python2.7/site-packages/xapers/nci/search.p=\r
163 y", line 304, in keypress\r
164       eval(cmd)\r
165     File "<string>", line 1, in <module>\r
166     File "/home/pazz/.local/lib/python2.7/site-packages/xapers/nci/search.p=\r
167 y", line 155, in nextEntry\r
168       self.listbox.set_focus(pos + 1)\r
169     File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2=\r
170 .7-linux-x86_64.egg/urwid/listbox.py", line 567, in set_focus\r
171       self.body.set_focus(position)\r
172     File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.2.0_dev-py2=\r
173 .7-linux-x86_64.egg/urwid/listbox.py", line 178, in set_focus\r
174       raise IndexError, "No widget at position %s" % (position,)\r
175   IndexError: No widget at position 1\r
176   ----------------------------\r
177 \r
178 \r
179 * did you already set something up to report bugs? github issues, a maling =\r
180 list?\r
181 \r
182 Can't wait until someone forks alot to use this. I've been waiting for some=\r
183 one (else)\r
184 to start a project like this for some time now :)\r
185 \r
186 rock on,\r
187 /p\r
188 \r
189 \r
190 --===============5362472888460847348==\r
191 MIME-Version: 1.0\r
192 Content-Transfer-Encoding: 7bit\r
193 Content-Description: signature\r
194 Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"\r
195 \r
196 -----BEGIN PGP SIGNATURE-----\r
197 Version: GnuPG v1.4.11 (GNU/Linux)\r
198 \r
199 iEYEABECAAYFAlFsSxUACgkQlDQDZ9fWxaoRsgCbB6Xj1P05hJsch71+5jC1BBdr\r
200 Ko8AniviyvGPECY3FACqnAfiW4xc5PQT\r
201 =eXpE\r
202 -----END PGP SIGNATURE-----\r
203 \r
204 --===============5362472888460847348==--\r