https://github.com/coot/arxiv_reader
Reader for http://arxiv.org news feed (emails)
https://github.com/coot/arxiv_reader
Last synced: 11 months ago
JSON representation
Reader for http://arxiv.org news feed (emails)
- Host: GitHub
- URL: https://github.com/coot/arxiv_reader
- Owner: coot
- Created: 2013-04-12T15:19:14.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-24T15:43:32.000Z (about 13 years ago)
- Last Synced: 2025-03-25T13:13:19.757Z (about 1 year ago)
- Language: Python
- Size: 129 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ARXIV READER FOR MUTT
=====================
This is a python script to nicely present [arxiv](http://arxiv.org/) news feed.
I use it together with the mutt email reader. It is written using the ncurses
library :). It highlights titles whihc are written by ``$ARXIV_AUTHORS`` or
ones that matches a pattern. It can also fetch abstracts, pdfs or just open
the link in your ``$BROWSER``.
Configuration
-------------
Add to `~/.muttrc` file the following snippet:
```
macro index,pager X "arxiv_reader.pyWo" "parse message through arxive_reader.py"
```
Then when you are over email fro arxiv type X and the scritp will parse the
email and list all the titles.
You should also set the ``$BROWSER`` environment variable, ``$PDFREADER``. Or
just change the ``$BROWSER`` and ``$PDFREADER`` variables in the script
directly. You should also change the ``$DOWNLOADDIR`` variable. By default
it is set to ``$HOME/downloads`` and if does not exist it is reset to
``/tmp``.
How to
------
Go up and down with ``j`` and ``k`` keys (or the arrow keys). Hit ``enter``
(or ````, or ``a``) to read the abstract. If it was not included in the
email it will be downloaded from the arxiv web page. If you hit ``u`` the
paper's url will be opened using your ``$BROWSER``. You can also save an entry to
database: with ``s``, or delete it with ``d`` (sqlite3 database placed in
``$HOME/.arxiv.db``). The ``g`` key will get/download the most recent version
of the paper and ``O`` will open the file in ``$PDFREADER``.
Press ``q`` to close the abstract window or quit the reader.
If you define ``$ARXIV_AUTHORS`` environment variable titles of matching authors
will be highlighted. ``$ARXIV_AUTHORS`` is a white space separated list of names.
It also hightlights the title if ``$ARXIV_ABSTRACT_PATTERN`` match the title
or the abstract. ``$ARXIV_ABSTRACT_PATTERN`` is a Python pattern (can be
written like r"" litterals).