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 E123B431FB6 for ; Tue, 16 Apr 2013 01:35:17 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.699 X-Spam-Level: X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5 tests=[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 zDyLtvc0eHyr for ; Tue, 16 Apr 2013 01:35:16 -0700 (PDT) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 976E5431FAF for ; Tue, 16 Apr 2013 01:35:16 -0700 (PDT) Received: by mail-we0-f182.google.com with SMTP id m1so164504wea.13 for ; Tue, 16 Apr 2013 01:35:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=jx4/J2es6sOAJ0vadpE5FbbrYyryGqSNccaIn2Y1g5c=; b=CmVZyi+bIgQkKM2Lk8U70EGay1qB/Hh0L90vsZY4l0HX/0W8WeXXNQucVWESqEsA0f ndBgiJZ28nNx0EqP9wiXti+fDFZH+ggkrXzYGev0XEgpSTwOYtzlszKvt6uRqIjqnxNq kEWX02N1GuRDDp4ZI3hBDejZSFNcPdK/HIfLzo36/vhinIY8F2PwlWjfhnlSKfZLzgnI MTs+JO2iSQt8qnp+YFsOSn+TgBh2uzRglsPv7kx/h+ad+3spkJHrXWJZAiL2Qd7HNOn9 l9x+hxT2qccywnbq2ZaYzkgH14F2LGcSa7YVSkOPQ4FwBom2VNTWp25r7lZ+AyShqs8T OqAg== X-Received: by 10.194.8.99 with SMTP id q3mr1531020wja.34.1366101314120; Tue, 16 Apr 2013 01:35:14 -0700 (PDT) Received: from ecolmod ([2a01:e35:8baa:b070:3195:b1f6:2ed:d6ac]) by mx.google.com with ESMTPS id fz3sm1462711wib.0.2013.04.16.01.35.12 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 16 Apr 2013 01:35:13 -0700 (PDT) From: Rainer@krugs.de (Rainer M. Krug) To: Jameson Graef Rollins Subject: Re: Xapers References: <87zjx0tdwt.fsf@servo.finestructure.net> <87li8ju307.fsf@servo.finestructure.net> <20130415184645.698.61822@brick.lan> <87a9oztxxu.fsf@servo.finestructure.net> Date: Tue, 16 Apr 2013 10:35:10 +0200 In-Reply-To: <87a9oztxxu.fsf@servo.finestructure.net> (Jameson Graef Rollins's message of "Mon, 15 Apr 2013 12:07:25 -0700") Message-ID: <87txn6lvpd.fsf@krugs.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Notmuch Mail 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: Tue, 16 Apr 2013 08:35:18 -0000 Jameson Graef Rollins writes: > On Mon, Apr 15 2013, Patrick Totzke wrote: >> Brilliant idea! > > Thanks! I give Carl all the credit, though, since it's really all just > based on the notmuch idea. > >> here's some early feedback: >> * is there a way to batch import a bunch of pdfs? or better yet, a bibte= x file 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} > > There's not currently a prescribed way to batch import, but if you can > programmatically get all pdf/bibtex pairs then it should be easy to > script: > It would be quite important to be able to do something along the lines of xapers import --bib=3DTheBibtexFile.bib and xapers extracts the info it needs. If this info of the source of the data is put into a config file, one could, as with notmuch, just update xapers by doing: xapers new and all new papers in the config file source (bibtex, possibly directory with pdf, text file, ...) would be added to xapers. Most people already have there papers in bibtex files, so a feature like this wold make xapers a *very* interesting tool - I would most definitely use it,bu not if I have to re-enter each file I add to the pdf. Is there a mailing list or place where you anounce new versions? Looking forward to the bibtex interface, Rainer =20=20 > xapers import --file=3DPDF --source=3DBIBTEX > >> * got a bunch of traces: >> ----------------------------- >> $xapers import --source=3DABK2011.pdf = 1 =E2=86=B5 master=20 >> Reading bibtex... done. >> Adding bibtex...=20 >>=20=20=20 >> Traceback (most recent call last): >> File "/home/pazz/.local/bin/xapers", line 145, in >> docid =3D cli.add(query_string, infile=3Dinfile, source=3Dsource, = tags=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 >> ---------------------------- > > Yikes. Sorry about that. Clearly more error checking is needed. > > The problem here is that PDFs should passed in through the --file=3D > option, while source library URLs or bibtex files should be passed in > through --source=3D. > >> $ 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/searc= h.py", line 304, in keypress >> eval(cmd) >> File "", line 1, in >> File "/home/pazz/.local/lib/python2.7/site-packages/xapers/nci/searc= h.py", 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 >> ---------------------------- > > Hrm. Don't know what this is about. I'll look into it. Sorry again! > >> * did you already set something up to report bugs? github issues, a mali= ng list? > > No, not yet. I wanted to gauge interest first. Maybe I'll go ahead and > set something up on github. In the meantime please just report bugs to > be directly and I'll note them in the TODO. > >> Can't wait until someone forks alot to use this. I've been waiting for >> someone (else) to start a project like this for some time now :) > > Well actually the curses UI is ripped almost entirely from alot already! > It clearly needs some more work, though. > > Thanks for the feedback and interest! > > jamie. > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch <#secure method=3Dpgpmime mode=3Dsign> --=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug