Olivier Mangin
5a47150aad
Adds option to ignore malformed bibtex files or entry during import.
2018-07-30 18:24:56 +02:00
Olivier Mangin
60650b874a
Addresses minor comments (error message and better test).
2018-07-30 17:46:04 +02:00
Olivier Mangin
ea711b6b42
[ Fix #87 ] Include citekey in message on bibtex decoding error from repository.
...
Catches decoding error at databroker level to include citekey in message.
Could be improved by a better exception class for BibDecodingError.
2018-07-25 22:52:27 +02:00
Olivier Mangin
8a7d143261
Improves behaviors related to bibtex decoding error.
...
- from editor input in add and edit commands,
- from files in import command.
2018-07-25 22:20:14 +02:00
Olivier Mangin
6957ae3cbb
Merge branch 'master' into feat/dialogedit
2018-07-25 17:24:06 +02:00
Olivier Mangin
fbd29d27a4
Merge pull request #141 from pubs/feat/editor_missing
...
error message when editor is missing
2018-07-25 17:23:06 +02:00
Olivier Mangin
4dc69bcfc2
Use vi as a (saner) default. Fixes #140 .
2018-07-24 11:01:06 +02:00
Fabien C. Y. Benureau
4b1717b7fd
dialog after editing paper
2018-06-10 19:09:49 +09:00
ksunden
e177b43d14
Remove unused imports, update strings
2018-05-20 20:17:45 -05:00
Fabien C. Y. Benureau
6cd74a9966
error message when editor is missing
...
simplified a bit the ui code, to remove unecessary out-of-class functions
(needed anyway because of ui.error calls).
2018-05-17 09:22:31 +09:00
ksunden
54a056c277
Change error to warning
2018-05-14 18:38:43 -05:00
Kyle Sunden
7c82a8518b
remove extraneous print
2018-05-14 18:03:39 -05:00
ksunden
247554c248
Fix error handling
2018-05-08 23:20:32 -05:00
ksunden
bff1f5763d
Add a command to open urls
2018-05-08 22:32:12 -05:00
Fabien C. Y. Benureau
913a5d77b5
unicode citekey in python2; removes
2018-04-10 14:55:55 +09:00
Fabien C. Y. Benureau
c7e9470300
implement requested changes for #133
2018-04-10 14:46:27 +09:00
Fabien C. Y. Benureau
dc4e118c3c
make utf8 citekeys possible in python 2.7. closes #28
...
This involved many changes, some side effects of the change include:
- remove of all `u"abc"` forms, in favor of
`from __future__ import unicode_literals`. Their usage was
inconsistent anyway, leading to problems when mixing with
unicode content.
- improve the tests, to allow printing for usecase even when
crashing. Should make future test easier. This is done with a
rather hacky `StdIO` class in `p3`, but it works.
- for some reason, the skipped test for Python 2 seems to work
now. While the previous point might seem related, it is not clear
that this is actually the case.
2018-04-10 14:45:54 +09:00
Fabien C. Y. Benureau
38133fc053
fix for utf8 citekeys
2018-04-10 14:44:01 +09:00
Olivier Mangin
50a44d964c
Merge branch 'master' into version
2018-04-03 12:36:52 -04:00
Olivier Mangin
801e0c035f
Adds code version to cache. ( Fixes #129 )
...
Current code version is added to the cache on writting. If the cache
version does not match the code version on read, the cache is ignored
which means it resets.
2018-03-30 19:16:23 -04:00
Olivier Mangin
0d7b44a3f5
Have version defined in only one place ( fixes #86 ).
2018-03-30 18:47:21 -04:00
Olivier Mangin
bcf216183f
Fixes tests for printing help on --help
and without argument.
...
(fix #135 )
2018-03-27 15:44:20 -04:00
Olivier Mangin
12e8285674
Adds tag list completion in
2018-03-20 18:43:51 -04:00
Olivier Mangin
c28ab495cc
Removes journal customization ( fixes #126 )
2018-03-05 11:25:12 -05:00
Olivier Mangin
71c2f40657
Merge branch 'master' into fix/link_customization
2018-03-02 13:33:14 -05:00
Fabien C. Y. Benureau
3e376e2d8b
remove obsolete exception catching
2018-02-27 13:18:59 +09:00
Olivier Mangin
a6d5df4059
Removes link and DOI customization. Fixes #119 .
2018-02-21 16:14:38 -05:00
Fabien C. Y. Benureau
adbeb7f2b3
activating common strings by default in parser; fixes #122
2018-02-21 14:06:30 +09:00
Olivier Mangin
6e39cea473
Adds --strict
option to list to force strict unicode comparison.
2018-02-20 18:06:33 -05:00
Olivier Mangin
f3ec9621ee
Adds and checks unicode normalization. Fixes #103 .
2018-02-20 18:06:33 -05:00
Olivier Mangin
1bcbf65dd8
Implements latex escape in queries.
2018-02-20 18:06:33 -05:00
Olivier Mangin
cff028d345
Minor refactoring of string comparison in query filters.
2018-02-20 18:06:33 -05:00
Olivier Mangin
078b2084ff
Updates field orders to use 'url' and fixes broken test.
...
The field ordering test was broken on the latest bibtexparser since it
now replaces by default 'link' fields by 'url'.
2018-02-19 15:32:45 -05:00
Olivier Mangin
0b1ff7e441
PEP8 cosmetics.
2018-01-25 22:37:11 -05:00
Olivier Mangin
328f2a6d5e
Adds more checks and better error message against empty citekeys.
2018-01-25 22:37:11 -05:00
Olivier Mangin
26f0b4dc04
Adds argcomplete command to pubs_cmd so that is now used as entry-point.
2018-01-25 16:09:30 -05:00
Olivier Mangin
ac536269e3
Removes script since unused with entry_points method
2018-01-23 16:21:38 -05:00
Olivier Mangin
a8716e6482
Adds completion for the --ignore-fields
tag.
2018-01-07 13:54:38 -05:00
Olivier Mangin
860181e278
Adds argument to ignore fields in export. [ Closes #67 ]
...
`pubs export --ignore-fields abstract,note CiteKey`
2018-01-07 13:40:06 -05:00
Olivier Mangin
07be993d02
Moves to using bibtexparser's writer for bibdata. [ Fixes #33 ]
2018-01-07 12:59:55 -05:00
Bill Flynn
098cb4d1bf
ran pep8 on pubs/utils
2018-01-05 21:38:47 -05:00
Bill Flynn
aea58dea29
[ #95 ] refactored exception into standardize_doi
2018-01-05 21:31:19 -05:00
Bill Flynn
e2ad39ca08
[ Fix #95 ] robust handling of DOIs
...
Added DOI regex function to utils.py which is called in add_cmd.py
upon specifying a new DOI. DOI validation applies directly on
argument parsing by using a custom argparse.Action.
2018-01-05 19:22:00 -05:00
Olivier Mangin
3ad4a73da1
Moves query code from list_cmd to didicated module.
2018-01-05 14:34:24 -05:00
Olivier Mangin
0bd8d5b8dc
Actually adds the functionality as well as a few more tests.
2018-01-05 14:34:24 -05:00
Olivier Mangin
832a20d743
Typo.
2018-01-05 14:34:24 -05:00
Olivier Mangin
84553d8eb3
[ Fix #90 ] Adds year ranges to queries.
2018-01-05 14:34:24 -05:00
Olivier Mangin
c54de5c3b6
Refactors paper filtering from queries.
2018-01-05 14:34:24 -05:00
Olivier Mangin
e3f2e7db26
Cosmit.
2018-01-02 15:47:44 -05:00
Bill Flynn
4362c649b2
Added alias description functionality to conf #98
...
Changed Alias constructor, added tests for this behavior, and added
a few lines in the default conf describing how to define alias
descriptions.
2017-12-20 09:13:22 -05:00